Author image

C++ Vector Implementation

A C++17 ready, allocator_traits aware Vector similar to std::vector ; made to become familiar with the internals of C++ standard library containers.


  • fix some obscure Iterator problems (perhaps add begin() and end() to it) - we'll see
  • shrinkToFit(#) : if current storage is larger than # Bytes, it shrinks it to # bytes
  • halfSize() shrink

I won't attempt to create a full tutorial on this, because LokiAstari has covered this in excruciating detail already - in a level I can't hope to match (check out acknowledgements section below).

I used Windows, Visual Studio & C++17 to...