Template metaprogramming
Programming paradigm that uses compile-time metaprogramming
Template metaprogramming (TMP) is a metaprogramming technique in which templates are used by a compiler to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled. The output of these templates can include compile-time constants, data structures, and complete functions.
Nº Q773763 ★
Common · Knowledge
Template metaprogramming
Programming paradigm that uses compile-time metaprogramming
Template metaprogramming (TMP) is a metaprogramming technique in which templates are used by a compiler to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled. The output of these templates can include compile-time constants, data structures, and complete functions.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
Template metaprogramming (TMP) is a metaprogramming technique in which templates are used by a compiler to generate temporary source code, which is merged by the compiler with the rest of the source code and then compiled. The output of these templates can include compile-time constants, data structures, and complete functions. The use of templates can be thought of as compile-time polymorphism. The technique is used by a number of languages, the best-known being C++, but also Curl, D, Nim, and XL. Template metaprogramming was, in a sense, discovered accidentally. Some other languages support similar, if not more powerful, compile-time facilities (such as Lisp's macros).
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
S
Standard Template Library
Software library for the C++ programming language
Nº Q741235 ★★
Not listed
-
M
Metaprogramming
Programming paradigm
Nº Q661075 ★★
Not listed
-
Compiler
Computer program that transforms source code into object code
Nº Q47506 ★★★
Not listed
-
C
Curiously recurring template pattern
Software design pattern
Nº Q5194797 ★★
Not listed
-
C++
General-purpose programming language
Nº Q2407 ★★★★
Not listed
-
Dynamic programming
Problem optimization method that simplifies a complicated problem by decomposing it into simpler subproblems recursively
Nº Q380679 ★★★
Not listed