C++ STL: Array vs Vector: Raw element accessing performance
Element access time in a typical implementation of a std::vector is the same as element access time in an ordinary array available through a pointer object (i.e. a run-time pointer value) std::vector<int> v; int *pa; … v[i]; pa[i]; // Both have the same access time However, the access time to an element of an array … Read more