[PATCH][_GLIBCXX_DEBUG] Enhance std::erase_if for vector/deque

François Dumont frs.dumont@gmail.com
Sun Nov 21 11:24:59 GMT 2021

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


             * 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 ?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: erase_if.patch
Type: text/x-patch
Size: 3684 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211121/96b921fd/attachment-0001.bin>

More information about the Gcc-patches mailing list