...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
void clear();
This preserves the capacity of the internal string used to hold the serialized representation.