Is the following code guaranteed by the standard to work(assuming st is not empty)?
#include #include int main() { extern std::st
Only std::vector is guaranteed by C++03 to have contiguous elements (23.4.1). In C++1x this will be extended to std::string as well (defect #530).
std::vector
std::string