Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2024. The current version is 1.90.0.
Replace a substring with a string.
string& replace(std::size_tpos,std::size_tcount,string_viewsv); »more...
Replace a range with a string.
string& replace(string::const_iteratorfirst,string::const_iteratorlast,string_viewsv); »more...
Replace a range with a range.
template< class InputIt>string& replace(string::const_iteratorfirst,string::const_iteratorlast, InputIt first2, InputIt last2); »more...
Replace a substring with copies of a character.
string& replace(std::size_tpos,std::size_tcount,std::size_tcount2, char ch); »more...
Replace a range with copies of a character.
string& replace(string::const_iteratorfirst,string::const_iteratorlast,std::size_tcount, char ch); »more...