I just wanted to point to something!
summary
Covers practical C++ pointer and pointer-like choices with concrete tradeoffs and small benchmarks: use references for non-null borrows, std::unique_ptr for sole ownership, and std::string_view for non-owning string slices. Explains when iterators are better than raw pointers for container elements, when to use observer_ptr or optional<T> to represent nullable pointers, why std::shared_ptr adds refcount overhead and can hurt hot paths, when std::byte is the correct raw-buffer type versus legacy void*, and how allocators and move semantics affect whether objects must be copied or can be transferred.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 10:33Pointer basics explained
- 21:28Advanced pointer concepts
- 33:18Real-world pointer use cases
- 49:20Pointers in system design
- 1:03:56Q&A and closing remarks
related talks
01h 33mSafe and Sane C++ Types
36mInterfaces Matter
01h 23mRethink Polymorphism in C++
58mModern C++ Design (part 2 of 2)
39mTemporal Dynamics - Exploring the Intricacies of Object Lifetimes in Modern C++
54mWriting C++ to Be Read
01h 20mWhat Classes We Design and How
32mC++ Standard Library "Little Things”
