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

YouTube

Embracing User-Defined Literals Safely

ACCU Conference via YouTube

Overview

Explore the intricacies of user-defined literals (UDLs) in C++ through this comprehensive ACCU 2022 conference talk by Pablo Halpern. Delve into the benefits, implementation methods, best practices, and potential pitfalls of UDLs. Learn when to use and when to avoid creating custom literals, understanding their role in minimizing expressive differences between built-in types and user-defined types. Gain insights into various UDL definition techniques, ranging from simple to complex, and discover how to safely embrace this powerful C++ feature to enhance code readability and expressiveness.

Syllabus

Intro
Literal Examples
Outline
About me
Book
UserDefined Literals
Why UserDefined Literals
Common UserDefined Literals
Other Restrictions
Factory Functions
UserDefined Literal
syntactic sugar
how to define
namespaces
cooked udl operators
token example
possible overloads
cooked literals
raw udl operators
base3 udl
base3 error detection

Taught by

ACCU Conference

Reviews

Start your review of Embracing User-Defined Literals Safely

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.