C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: passing back an iterator

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
White Wolf
Guest





PostPosted: Thu Aug 28, 2003 5:16 pm    Post subject: Re: passing back an iterator Reply with quote



Dan wrote:
Quote:
Is it possible to pass an iterator back to a calling function ,
something like this ?


list<CEvent *>::iterator CEventListDetails::Test(CEvent *pEvt)
{

return list_iter;
}


Yes. Of course you have some code missing. Smile This is the way how - for
example - the find member function of the std::map works or the find
standard algorithm.

--
WW aka Attila



Back to top
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group