How to find index of a particular record in a vector?

This is a discussion on How to find index of a particular record in a vector? within the C++ Programming forums, part of the General Programming Boards category; Code:
typedef vector<string> vString;
vector<vString> vBig;
vString vSmall;
vString vType;
vString::iterator itr;
bool bPresent =false;
string type="phone";
string val="857867";
for(itr=vType.begin();itr!=vType.end();itr++)
...

"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens