Spyke
cppยทC++byHerzenschein

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022

Best resource I've seen out there for template basics. It even briefly mentions variadic templates, concepts that are easy to understand, auto in function parameters (a.k.a. abbreviated function templates) and how to find out what type is chosen when you do class template automatic deduction (CTAD).

I feel like this is an absolute must-watch if you want to know about modern template practices.

View original on pawb.social

Templates are definitely one of the main strengths of C++ that will make me stick with this language for many years to come. They're the closest thing to C++ introspection that we have right now and they allow you to basically make your own personal development environment with your own rules.

If you're interested in templates metaprogramming to do stuff at compile-time and not just using templates as a replacement for macros, these are a some must-watch talks:

1

You reached the end

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022 | Spyke