3 ms·
There is a major use case for std::vector having contiguous memory, which is passing a reference to the first element of a vector into a function expecting a po
by r-s 12y ago
There is a major use case for std::vector having contiguous memory, which is passing a reference to the first element of a vector into a function expecting a pointer. This is fine assuming the vector is not empty.