...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::replace_range — Replace range algorithm.
// In header: <boost/algorithm/string/replace.hpp> template<typename SequenceT, typename RangeT> void replace_range(SequenceT & Input, const iterator_range< typename range_iterator< SequenceT >::type > & SearchRange, const RangeT & Format);