W
Wing
Hello,
I have the following code:
////////////////////////////
class Obj
{
public:
int time;
string str;
};
vector<Obj> array;
////////////////////////
I would like to remove all the "Obj" objects where their "time"
variables are less than or equal to, say x. Could anyone teach me how
to use erase-remove to do that?
Thank you so much!
I have the following code:
////////////////////////////
class Obj
{
public:
int time;
string str;
};
vector<Obj> array;
////////////////////////
I would like to remove all the "Obj" objects where their "time"
variables are less than or equal to, say x. Could anyone teach me how
to use erase-remove to do that?
Thank you so much!