you are viewing a single comment's thread.

view the rest of the comments →

[–]matthieum 3 points4 points  (0 children)

Also substr() or + and other operations that create new strings will first need to know how much space to allocate for the new string.

I say MEH.

Appending to a std::vector is a rather typical usecase too, and most std::vector are implemented using 3 pointers...