N4161: Uniform Container Erasure (Revision 1) -- Stephan T. Lavavej
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
Date: 2014-10-09
Uniform Container Erasure (Revision 1)
by Stephan T. Lavavej
Excerpt:
This is a proposal to add
erase_if(container, pred)
anderase(container, value)
, making it easier to eliminate unwanted elements correctly and efficiently. This updates N4009 (see [1]) which proposederase_if()
, by addingerase()
and answering additional questions. Please see the original proposal for the rationale behind this feature, which is not repeated here.