home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 May
/
Pcwk5b98.iso
/
Borland
/
Cplus45
/
BC45
/
CLOBSS.PAK
/
COLLECT.CPO
< prev
next >
Wrap
Text File
|
1995-08-29
|
1KB
|
30 lines
/*------------------------------------------------------------------------*/
/* */
/* COLLECT.CPP */
/* */
/* Copyright Borland International 1991, 1993 */
/* All Rights Reserved */
/* */
/*------------------------------------------------------------------------*/
#if !defined( __COLLECT_H )
#include "classlib\obsolete\collect.h"
#endif // __COLLECT_H
Object _FAR & Collection::findMember( Object _FAR & testObject ) const
{
ContainerIterator& containerIterator = initIterator();
while( containerIterator != 0 )
{
Object& listObject = containerIterator++;
if( listObject == testObject )
{
delete &containerIterator;
return listObject;
}
}
delete &containerIterator;
return NOOBJECT;
}