An Introduction to Templates
Get a brief introduction to templates and template metaprogramming in C++.
We'll cover the following
Templates in C++
As C++ developers, we should be at least familiar if not well versed in template metaprogramming, in general, referred to in short as templates. Template metaprogramming is a programming technique that uses templates as blueprints for the compiler to generate code and help developers avoid writing repetitive code. Although general-purpose libraries use templates heavily, the syntax and the inner workings of templates in the C++ language can be discouraging.
Get hands-on with 1400+ tech skills courses.