468,484 Members | 2,144 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

vector find_if

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
1 2529
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.

Similar topics

6 posts views Thread by ma740988 | last post: by
7 posts views Thread by tehn.yit.chin | last post: by
8 posts views Thread by Joe Van Dyk | last post: by
4 posts views Thread by Anonymous | last post: by
2 posts views Thread by John Doe | last post: by
5 posts views Thread by eiji.anonremail | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.