8 Apr
2006
8 Apr
'06
4:57 p.m.
On 4/8/06, Lynn Allan
wrote: Thanks, but that isn't quite my question. I'm interested in the actual internal layout of the data in the actual std::string.
The standard doesn't force any internal representation for std::string. It could be a linked list of characters, if the implementation felt like being evil. ( More likely would be a rope of some kind. ) I would expect, however, that most implementations wil basically keep it as a null-terminated std::vector<char>-like internal representation for simplicity since c_str() is unfortunatly still rampant. ~ Scott