A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N4161
by Stephan T. Lavavej
This is a proposal to add
erase(container, value), making it easier to eliminate unwanted elements correctly and efficiently. This updates N4009 (see ) which proposed
erase_if(), by adding
erase()and answering additional questions. Please see the original proposal for the rationale behind this feature, which is not repeated here.