 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
White Wolf Guest
|
Posted: Thu Aug 28, 2003 5:16 pm Post subject: Re: passing back an iterator |
|
|
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. 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 |
|
 |
Powered by phpBB © 2001, 2006 phpBB Group
|