Temporal Dynamics - Exploring the Intricacies of Object Lifetimes in Modern C++
summary
Builds a database connection pool at Microsoft scale, disables copying and uses deleted copy constructors plus move constructors and move-assignment to avoid deep copies, uses RAII and smart pointers (unique/shared/weak) and std::forward/emplace_back for perfect forwarding, and adds custom destructor ordering for safe reclamation. Claims memory and latency drop under heavy load (millions of users) and codebase becomes more maintainable and predictable; examples compile and demonstrate the intended ownership transfers.
AI-written summary · about
chapters (8)
- 0:00Temporal dynamics in C++
- 1:52Special member functions
- 8:55Rule of six and zero
- 17:42RAII and smart pointers
- 26:10Move semantics and forwarding
- 31:49Custom destructor strategies
- 36:23Key learnings
- 37:45Q&A
related talks
36mInterfaces Matter
01h 28mModern C++ Design reloaded
01h 20mBetter Code: Relationships
55mObject Lifetime in C++: From Start to Finish
01h 23mRethink Polymorphism in C++
55mBreaking Dependencies: Type Erasure - The Implementation Details
01h 07mDesign Patterns in Modern C++
01h 33mSafe and Sane C++ Types
