C++ std::string append vs push_back()

In C++03 (for which most of “cplusplus.com”‘s documentation is written), the complexities were unspecified because library implementers were allowed to do Copy-On-Write or “rope-style” internal representations for strings. For instance, a COW implementation might require copying the entire string if a character is modified and there is sharing going on. In C++11, COW and rope … Read more