Start 12. Memory management and std::vector 12. Memory management and std::vectorΒΆ This section discusses class-based memory management in C++. 12.1. The std::vector class 12.1.1. Passing vectors to C functions 12.2. Copying objects 12.2.1. Copy constructors 12.2.2. Copy assignment 12.3. Lvalues, rvalues, and references 12.4. Moving memory 12.4.1. Move constructors and move assignment 12.5. Allocators 12.5.1. Using std::allocator_traits 12.6. constexpr classes 12.7. Immutable classes 12.7.1. Template metaprogramming approach