Is this valid in the C++ STL?
When I say legal, I don't mean will it compile, it does without warning. I mean, does STL guarantee that when I do &buffer.front() that the returned pointer points to the raw internal array. It does indeed work that way in MSVC++ 7.1, but is that portable?
std::vector<unsigned char> buffer;
memcpy(&buffer.front(), "foo", strlen("foo"));