On Sun, 21 Nov 2021 at 11:26, François Dumont via Libstdc++ <libstd...@gcc.gnu.org> wrote: > > I tried to use the same approach I used for node based containers but > got ambiguity on erase calls. I think this simple version will do the work. > > libstdc++: [_GLIBCXX_DEBUG] Enhance std::erase_if for vector/deque > > libstdc++-v3/ChangeLog: > > * include/std/deque (erase_if): Use _GLIBCXX_STD_C > container reference and > __niter_wrap to limit _GLIBCXX_DEBUG mode impact. > * include/std/vector (erase_if): Likewise. > > Tested under Linux x86_64 normal and _GLIBCXX_DEBUG modes. > > Ok to commit ?
OK, thanks.