Vectors

Back

  • C++ vectors are contiguously
  • Calling reserve can speedup execution by defining the amount of memory to allocate earlier. However if you push_back beyond that capacity then there will be a tool during reallocation

Reference