Overview
Explore advanced C++ concepts and techniques in this CppCon 2022 conference talk. Delve into counterintuitive code snippets known as "Cute C++ tricks" to gain deeper insights into intermediate and advanced aspects of the language. Learn how these tricks work, understand the dark corners of C++ they touch upon, and discover best practices for achieving similar effects in production code. Gain valuable knowledge on topics such as partial specialization, shadowing, named concepts, function template partial specialization, and user-defined literals. Improve your C++ programming skills by understanding how to exploit curiosity, expand your toolbox, and grasp fundamental language concepts.
Syllabus
Intro
Goals
Confession
Disclaimers
Concepts
Edible
Partial Specialization
Shadowing
Named Concepts
Specialization
Subsumption Specific
Name Concepts
Function Template Partial Specialization
Challenges
Challenge 1B
Challenge 2A
General Pattern
Overloads
Why you should never write this
Better ways to do this
More tricks
C literals
Userdefined literals
Userdefined literal templates
Userdefined literal suffix
Resolving at compile time
Questions
Nonevaluating Context
Class Template TMP
Taught by
CppCon