This repository explores advanced template techniques in C++, including class template argument deduction, smart pointers, structs, classes, abstract classes, virtual functions, auto
, lambda
, and constexpr
.
🎯 The goal: Personal learning about modern template techniques.
This repo contains various examples illustrating different advanced template techniques and their use cases. Each example is well-commented and easy to understand.
Demonstrates the class template argument deduction feature to deduce template arguments from constructor parameters.
Explores using smart pointers to manage the lifetime of objects in class templates and structs.
Shows how structs and classes can be used together in template programming.
Illustrates the combination of abstract classes and virtual functions in template programming.
Demonstrates how auto
and lambda can be used with templates to create more concise and expressive code.
Explores using constexpr
to make template code more efficient at runtime and during compile-time.
This repository is licensed under the MIT license.