N4009: Uniform Container Erasure -- Stephan T. Lavavej
[Ed.: Alternative title: "Finally! Let's please erase and remove the erase-remove idiom"...]
A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N4009
Date: 2014-05-22
Uniform Container Erasure
by Stephan T. Lavavej
Excerpt:
This is a proposal to add
erase_if(container, pred), making it easier to eliminate unwanted elements correctly and efficiently.
II. The ProblemIt's surprisingly difficult to eliminate unwanted elements from a container, given a predicate that distinguishes "bad" elements from "good" elements. ...

More in the "contiguous enables fast" department: