YoVDO

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

Offered By: CppCon via YouTube

Tags

C++ Courses Template Metaprogramming Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Related Courses

Introducing Functional Programming in C++
LinkedIn Learning
The C++ Type System is Your Friend
NDC Conferences via YouTube
Joyful Polyglot - Beautiful Insights from Many Languages
Ruby Central via YouTube
Circle Metaprogramming - Better Features Make Better Libraries
CppNow via YouTube
Taking Template Classes Further with Opaque Types & Generic NTTPs
CppNow via YouTube