471,311 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,311 software developers and data experts.

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 2654
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 rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.