KDAB / KDAlgorithms

Algorithm wrappers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`remove` / `remove_if` are supposed to be spelled `erase`

dangelog opened this issue · comments

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);