I have some vector<string> v1
, which was filled using push_back:
v1.push_back("a");
v1.push_back("b");
v1.push_back("c");
v1.push_back("d");
v1.push_back("e");
I have some another vector<string> v2
and an iterator, which contains some element
vector<string>::iterator v2iter;//some element of v2
And I need to check, is an v2iter element presents in v1, or not
find(v1, v2iter); //smth like this