Overview
Explore the philosophy of value semantics in modern C++ through this CppCon 2022 talk by Klaus Iglberger. Delve into the benefits of using value and value-like types over pointers and references, examining standard library components such as std::optional, std::function, and std::variant. Gain insights into the drawbacks of reference types like std::string_view and std::span, and address common questions about value semantics, including proper usage of reference types and considerations for reference parameters. Learn from Iglberger's expertise in large-scale C++ software design and his experience as the lead designer of the Blaze C++ math library.
Syllabus
Introduction
Structure
Disadvantages
Value Semantics
Advantages
Remove function
Standard Library
Optional
Memory usage
Variants
Taught by
CppCon