...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::erase_range — Erase range algorithm.
// In header: <boost/algorithm/string/erase.hpp> template<typename SequenceT> void erase_range(SequenceT & Input, const iterator_range< typename range_iterator< SequenceT >::type > & SearchRange);