Explore the complexities of pointer usage in C++ through this conference talk from C++Now 2018. Delve into the nuances of owning raw pointers, smart pointers, and references, challenging common advice and examining standard library practices. Analyze the properties of various pointer-like types and their appropriate applications. Investigate situations requiring pointer-like types and determine the best choices for each scenario. Gain insights into topics such as optional, std::observer_ptr, and the distinctions between T&, gsl::non_null, and std::reference_wrapper. Learn how the type system can aid in catching lifetime issues, ultimately providing a comprehensive guide to selecting the most suitable pointer types for different programming contexts.
Overview
Syllabus
C++Now 2018: Jonathan Müller “Rethinking Pointers”
Taught by
CppNow