(C++) Performance traps of std::vector and how to avoid them
For most C++ developers, std::vector is the default choice among STL containers.Thanks to its contiguous memory layout, it is highly cache-friendly and offers fast O(1) random access.
However, using std::vector without understanding its internal mech...
dongol-ts.hashnode.dev5 min read