If I have a vector of vector strings. I want to remove all duplicate words in the vector of vectors the contain a certain character. What would be an efficient way to do this?
I have a vector<vector<string>>
I only want to remove part of the vector<string> that has a "word" that contains a * in it. For example
vector 1 = "something*here is running "
vector 2 = "this*program is not working"
vector 3 = "this*program partial working "
All the vectors are in alphabetical order.
I need to get it into
vector 1 = "something*here is running"
vector 2 ="this*program is not working"
vector 3 = "partial working"
ie removing the duplicates of the words containing * , so allowing one word with * to exist.