[range] How does remove_erase() work?
Hi, I'm updating my Uniform Container Erasure proposal [1], and I was informed that Boost.Range has a similar-ish remove_erase(). I have a very simple question about its implementation, so I can describe it accurately in my revised proposal, but I don't really want to look at erase.hpp's guts. Does remove_erase() just use the erase-remove idiom, or does it contain special cases for the vector-like family, list-like family, and map-like family? (As N4009 explained, the erase-remove idiom is suboptimal for list, and won't compile for forward_list and the map-like family.) Thanks, STL [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4009.htm
On 07-10-2014 00:18, Stephan T. Lavavej wrote:
Hi,
I'm updating my Uniform Container Erasure proposal [1], and I was informed that Boost.Range has a similar-ish remove_erase().
Yes. Boost.PtrContainer has member erase_if() too: http://www.boost.org/doc/libs/1_56_0/libs/ptr_container/doc/ptr_sequence_ada... -Thorsten
[Thorsten Ottosen]
Yes. Boost.PtrContainer has member erase_if() too: http://www.boost.org/doc/libs/1_56_0/libs/ptr_container/doc/ptr_sequence_ada...
Thanks! I'll mention this in my paper too. STL
participants (3)
-
Eric Niebler
-
Stephan T. Lavavej
-
Thorsten Ottosen