In std::string there are only const members to fetch the data like c_str(). However I can get a reference to the first element of the string via operator[] and
operator[]
std::string will be required to have contiguous storage with the new c++0x standard. Currently that is undefined behavior.