[libcxx-commits] [PATCH] D58332: Erase-Like Algorithms Should Return size_type (P0646R1)
Marshall Clow via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 4 08:49:07 PDT 2019
mclow.lists added a comment.
A meta-question:
Why does `list<_Tp, _Alloc>::remove(const value_type& __x)` gather all the deleted nodes into a separate list, while
`list<_Tp, _Alloc>::remove_if(_Pred __pred)` and `list<_Tp, _Alloc>::unique()` just delete them as they go?
they're all the same operation under the hood.
[ I know you didn't create this difference. ]
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58332/new/
https://reviews.llvm.org/D58332
More information about the libcxx-commits
mailing list