Notes
Shorter reference notes, mostly on C++.
-
C++: Object and Storage Lifetimes
An interactive walk through object lifetime: where storage comes from, the four primitive operations, vector growth, and where dangling pointers come from.
-
C++: Polymorphism - CRTP
A base class templated on its own derived class: what the cast compiles to, and what it costs.
-
C++: Parameter Packs and Fold Expressions
What ... means in each position: declaring a parameter pack, expanding one, and the four fold forms.
-
C++: Concurrency Pt 2 - Sharing
Protecting shared data in C++: what a mutex actually guarantees, the RAII lock wrappers, and how multiple locks deadlock.