i am a little bit confused about the actual usage of the find function of map

i have say a vector<string> and i want to return the relative position (or iterator) of a key (of type string) in this vector.

now, the find function accepts only one input which is the key.

string s;
vector<string> vec;
map<string, int> row;
row.find(s);

how do i actually use this function? shouldnt the find accepts two inputs (one for the key, one for the vector to search for) .. ive looked up in google but found no solution yet

any help is appreciated
regards,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.