about
12/06/2022
TemplateTechniques Repo
TemplateTechniques Repository
Illustrates template syntax and use in programs
Quick Status
that spread more confusion than enlightenment
1.0 Concept
2.0 Design
-
Templates
Basic examples of template functions and classes.
-
TemplateTechniques
Examples of syntax including template specialization and template template parameters.
-
TemplateFunctorsEtc
Illustrates the use of functors with Standard Template Library (STL) containers.
-
TemplateMetaProgramming
Provides some examples showing that C++ compilers implement a functional language that executes at compile time.
-
VariaticTemplates
Uses compile-time recursion to create templates that accept any number of template parameters.
-
CustomContainerTypeTraits
Uses variatic templates to form composite traits for specializing template classes and overloading template functions.
3.0 Implementation
TemplateTechniques code was built with Visual Studio Community Edition - 2019 and tested on Windows 10.
It was compiled with the C++17 option set in Properties > C/C++ > language.