CPP Generics

See C Plus Plus Templates

Generic Programming in CPP - Bjarne Stroustrup

https://www.youtube.com/watch?v=ZpwfqSx2tAE

“By generic programming we approach the flexibility dynamically-typed languages without the run-time errors and poor performance”

CPP Generic programming has been the backbone of the ISO C++ standard library and much other code for decades. With C++20 the support for generic programming has improved to the point where we can improve our design techniques.

This talk reviews the current language support for generic programming focusing on concepts, compile-time evaluation, type deduction, and modules. Relying on those features significantly improves the ways we can express our ideas.

I will also present a few examples where even C++23 doesn’t completely support the needs of modern generic programming.


https://www.educative.io/courses/data-structures-with-generic-types-in-cpp