Templates let classes and functions work with types or compile-time values. This chapter builds a generic Vector<T>, introduces concepts and class template argument deduction, and explores function templates, function objects, lambdas, and supporting mechanisms such as alias templates and if constexpr.
Templates
Parameterized types, operations, and compile-time mechanisms