Hacker News new | ask | show | jobs
by plorkyeran 4450 days ago
std::vector guarantees that it stores its elements contiguously, as this is required for a lot of use-cases (such as passing the buffer to one of the millions of functions that take just a pointer and a size).