By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,905 Members | 1,654 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,905 IT Pros & Developers. It's quick & easy.

vector find_if

P: 2
can some clever guru help please.
I am porting some C++ 6.0 projects to C++ VS2005 and find_if no longer exists in vector, i am not sure what to do. i am only at begginer level so please dont get too complicated.

this is the code with the find_if in.

(lnArrayRowId = (find_if<vector<smartptr< JobBalances> >::iterator, EqualTo<JobBalances,String,8> > (global->EMPBAL.begin(),global->EMPBAL.end(),EqualTo<JobBalances,String,8> (global->ELDER_currentStruct->elder_element_ref)) - global->EMPBAL.begin()));

i did consider writing the find_if but i dont seem to have access to the iterator.
Oct 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: 2
sorry i have found it in <algorithm>
Oct 3 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.