Hi,
I've to write a function similar to this.
int process(const vector<int>& vct,int key)
{
// Here I've to find the position of key in the vector and do some
processing.
}
Is there any fucntion in algorithm which directly gives the position of
an elemant.
find() returns an iterator but not the postion of the elemant.
Is there any function equivalent to indexof()?
Regards,
Sunil