Temporal Dynamics - Exploring the Intricacies of Object Lifetimes in Modern C++
summary
Builds a database connection pool that enforces move only semantics, disables copying, and uses RAII plus smart pointers to avoid leaks, showing std::unique_ptr, std::shared_ptr and std::weak_ptr in practice. Implements move constructors and move assignment, uses perfect forwarding with std::forward and emplace_back to avoid deep copies, and follows Rule of Six and Zero to guide decisions. Example targets ~200 connections and reports improved memory safety and scalable performance — the design works at production scale.
AI-written summary · about
chapters (7)
- 0:00Introduction to talk
- 1:54Database connection pool basics
- 9:02Rule of Six and Rule of Zero
- 17:26RAII and resource management
- 25:24Move semantics and perfect forwarding
- 31:49Custom destructors strategy
- 36:44Key takeaways and conclusion








