C++17 Features (part 2 of 2)
summary
C++17 adds concrete library features: string_view: non-owning pointer+length avoids copies, but becomes invalid if the source moves; std::optional: no-heap nullable wrapper provides a null state without allocation; std::par_unseq allows interleaving and the new parallel algorithms use execution policies (seq, par, par_unseq) and raise input-iterator requirements to forward. Also added std::variant with std::visit, std::any for type-erased heap storage, std::filesystem, polymorphic allocators (std::pmr), map node operations, new math functions, and _v variable templates.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:30StringView
- 7:01StringView Questions
- 9:41StringView Interfaces
- 12:30Optional
- 14:36Using Optional
- 25:30Variance
- 27:27Header Variant
- 28:15Visitation
- 32:08Variants
- 34:26StandedAny
- 34:54Any
- 35:55Parallel Algorithms
- 37:22Execution Policy
- 38:45Execution Policy Parameters
- 42:10File System Library
- 43:12Boost File System
- 46:48Polymorphic Allocators
- 49:00Improved Insertion and Spicing
- 50:18Merge Maps
- 51:35Associative Containers
- 52:45Variable Templates








