...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Replace a substring with a string.
string&
replace(
std::size_t pos,
std::size_t count,
string_view sv);
» more...
Replace a range with a string.
string&
replace(
const_iterator first,
const_iterator last,
string_view sv);
» more...
Replace a range with a range.
template<
class InputIt>
string&
replace(
const_iterator first,
const_iterator last,
InputIt first2,
InputIt last2);
» more...
Replace a substring with copies of a character.
string&
replace(
std::size_t pos,
std::size_t count,
std::size_t count2,
char ch);
» more...
Replace a range with copies of a character.
string&
replace(
const_iterator first,
const_iterator last,
std::size_t count,
char ch);
» more...