S
silverburgh.meryl
How can I remove items from a stl vector if it exists on another
vector?
In Java, I can do this:
vector v1 = new Vector();
// populate v1
vector v2 = new Vector();
// populate v2
v1.removeAll(v2);
how can I do that in C++?
Do I have to write my own functor and pass that to remove_if()
algorithm?
vector?
In Java, I can do this:
vector v1 = new Vector();
// populate v1
vector v2 = new Vector();
// populate v2
v1.removeAll(v2);
how can I do that in C++?
Do I have to write my own functor and pass that to remove_if()
algorithm?