Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++20 std::erase_if #254

Open
mglisse opened this issue Oct 7, 2023 · 0 comments
Open

C++20 std::erase_if #254

mglisse opened this issue Oct 7, 2023 · 0 comments

Comments

@mglisse
Copy link

mglisse commented Oct 7, 2023

C++20 added a uniform interface std::erase_if to remove some elements from a container, with overloads for all the standard containers. I believe it would be useful to implement this for the containers in Boost. My only doubt is whether the overloads should be in namespace std or in the namespace of the container (probably the second, at least that's what the original WG21 paper suggested and what Boost.Unordered did).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant