DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   <map> find function (http://www.daniweb.com/forums/thread53928.html)

kimw Sep 1st, 2006 11:34 am
<map> find function
 
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,

Grunt Sep 1st, 2006 1:05 pm
Re: <map> find function
 
Map/Multimap


All times are GMT -4. The time now is 4:07 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC