Tools.h++ Manual
22-84 104011 Tandem Computers Incorporated
22
RWBoolean removeNext(const T& a);
Advances the iterator to the first element that is equal to
a
and removes it.
Returns
TRUE
if successful,
FALSE
otherwise. Equality is measured by the
class-defined equality operator for type
T
. Afterwards, if successful, the
iterator will be positioned at the element immediately before the removed
element.
RWBoolean removeNext(RWBoolean (*testFun)
(const T&, void*), void*);
Advances the iterator to the first element for which the tester function pointed
to by
testFun
returns
TRUE
and removes it. Returns
TRUE
if successful,
FALSE
otherwise. Afterwards, if successful, the iterator will be positioned at
the element immediately before the removed element.
void reset();
Resets the iterator to the state it had immediately after construction.
void reset(RWTValDlist<T>& c);
Resets the iterator to iterate over the collection
c
.