Read basic_string::push_back() and basic_string::reserve().