...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::ierase_last — Erase last algorithm ( case insensitive )
// In header: <boost/algorithm/string/erase.hpp> template<typename SequenceT, typename RangeT> void ierase_last(SequenceT & Input, const RangeT & Search, const std::locale & Loc = std::locale());