3 ms·
erase_if sounds like a method I'd be happy to have in many languages, where containers aren't safe to modify as you're iterating over them.
by TillE 12y ago
erase_if sounds like a method I'd be happy to have in many languages, where containers aren't safe to modify as you're iterating over them.
- jgh 12y agoThat's definitely a nice addition. I also like the map::try_emplace and map::insert_or_assign suggestions.
- StephanTLavavej 12y agoMy erase_if proposal was accepted for the Library Fundamentals v2 Technical Specification and is therefore likely to get into C++17.