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

YouTube

A Tour of C++ Recognized User Type Categories

CppCon via YouTube

Overview

Explore a comprehensive conference talk from CppCon 2022 that delves into the intricacies of C++ recognized user type categories. Gain insights into trivial types, standard layout types, implicit-lifetime types, aggregate types, and literal types. Learn about their differences, use cases, and importance in optimizing code. Discover the advantages and potential pitfalls of these language-recognized user types, and understand how to leverage their special provisions to write more efficient C++ code. Follow along as Nina Ranns, a seasoned C++ standard committee member, guides you through the nuances of these type classifications, helping you avoid undefined behavior and make informed decisions in your programming.

Syllabus

Introduction
Why am I here
About the book
Why we have special types
C Object Model
Object Representation
Types
Objects
Aggregates
Aggregate Initialization
Designated Initialization
Question of Aggregate
Definition of Aggregate
Library Trade
Limitations
Standard Layout
Standard Access Control
Base Classes
Unique No Unique Address
Structure
Classes
Common Initial Sequence
STD Standard Layout
Useful and Not Useful
Copyable Types
Default Constructor
CopyMove
Destruct
Copyable
Undefined
Copy
trivial
for nothing
trivial types
pod types
pot types
original definition
split definition
trivial standard layout
library
literal types
compile time
constant expression
compiletime
Closure
Destructor
Trait
Structural
Nontype Template Parameters
Implicit Lifetime Types
Object Lifetime
undefined Behavior
Array
Arithmetic
Aggregate Classes
ObjectLifetime
Arrays
Implicit Lifetime
Conclusion
Can they be implemented in C

Taught by

CppCon

Reviews

Start your review of A Tour of C++ Recognized User Type Categories

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.