4 ms·
This was not guaranteed to work in C++98, but has been fixed in C++03 by stating that std::vector has to use a contiguous block of memory. &v[0] (without the p
by gurkendoktor 12y ago
This was not guaranteed to work in C++98, but has been fixed in C++03 by stating that std::vector has to use a contiguous block of memory.
&v[0] (without the parens) is even shorter :)