Fake Run-Time Selection of Template Arguments in C++
The result's identifiers
Result code in IS VaVaI
<a href="https://www.isvavai.cz/riv?ss=detail&h=RIV%2F68407700%3A21240%2F12%3A00193327" target="_blank" >RIV/68407700:21240/12:00193327 - isvavai.cz</a>
Result on the web
<a href="http://dx.doi.org/10.1007/978-3-642-30561-0_11" target="_blank" >http://dx.doi.org/10.1007/978-3-642-30561-0_11</a>
DOI - Digital Object Identifier
<a href="http://dx.doi.org/10.1007/978-3-642-30561-0_11" target="_blank" >10.1007/978-3-642-30561-0_11</a>
Alternative languages
Result language
angličtina
Original language name
Fake Run-Time Selection of Template Arguments in C++
Original language description
C++ does not support run-time resolution of template type arguments. To circumvent this restriction, we can instantiate a template for all possible combinations of type arguments at compile time and then select the proper instance at run time by evaluation of some provided conditions. However, for templates with multiple type parameters such a solution may easily result in a branching code bloat. We present a template metaprogramming algorithm called for_id that allows the user to select the proper template instance at run time with theoretical minimum sustained complexity of the branching code.
Czech name
—
Czech description
—
Classification
Type
D - Article in proceedings
CEP classification
IN - Informatics
OECD FORD branch
—
Result continuities
Project
<a href="/en/project/GAP202%2F12%2F2011" target="_blank" >GAP202/12/2011: Parallel Input/Output Algorithms for Very Large Sparse Matrices</a><br>
Continuities
I - Institucionalni podpora na dlouhodoby koncepcni rozvoj vyzkumne organizace
Others
Publication year
2012
Confidentiality
S - Úplné a pravdivé údaje o projektu nepodléhají ochraně podle zvláštních právních předpisů
Data specific for result type
Article name in the collection
Objects, Models, Components, Patterns
ISBN
978-3-642-30560-3
ISSN
0302-9743
e-ISSN
—
Number of pages
15
Pages from-to
140-154
Publisher name
Springer
Place of publication
Berlin
Event location
Praha
Event date
May 28, 2012
Type of event by nationality
EUR - Evropská akce
UT code for WoS article
000320619000011