A deep dive into implementing a custom std::vector<T> from scratch in C++. Covers the full class template including constructors (default, initializer list, copy, move), copy/move assignment operators, destructor, and the rule-of-five. Explains memory management using aligned operator new, custom deleters with unique_ptr, and
Table of contents
Unit tests for vector<T>vector member datavector constructorsBasic services of a vector-like classHow to think about adding elements to our container?ConclusionReferencesSort: