Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Cute C++ Tricks: Code You Should Learn From and Never Write - Part 2.5

CppCon via YouTube

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

Reviews

Start your review of Cute C++ Tricks: Code You Should Learn From and Never Write - Part 2.5

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.