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

remove / remove_if are supposed to be spelled erase #7

Closed
dangelog opened this issue Sep 8, 2022 · 0 comments
Closed

remove / remove_if are supposed to be spelled erase #7

dangelog opened this issue Sep 8, 2022 · 0 comments

Comments

@dangelog
Copy link

dangelog commented Sep 8, 2022

Yeah, this is a hot take :-)

But Standard containers, Qt containers, etc. call the direct erasing operation erase, not remove:

// C++20
std::vector<int> v = ~~~;
erase(v, 42);

// Qt 6, C++17
QLits<int> list = ~~~;
erase(list, 42);
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

2 participants