
15 Dec
2010
15 Dec
'10
1:23 p.m.
On 15/12/2010 13:59, Stewart, Robert wrote:
I disagree. vector<char> would be a suitable storage container for the raw data. basic_string<char> implies string semantics.
More or less. It also adds some purely data structure elements that vector<char> does not provide, such as all things related to substrings (extracting a given substring, replacing a substring with a substring of a different length, appending a substring etc.) One can implement a rope data structure with the interface of basic_string, but not really with that of vector.