Tools.h++ Class Reference

Table Of Contents
operator().
For both operator++ and operator(), iterating past the last element will return a value equivalent
to boolean false. Continued increments will return a value equivalent to false until reset() is
called.
Persistence
None
Examples
#include<rw/tvmset.h>
#include<iostream.h>
#include<rw/cstring.h>
int main(){
RWTValMultiSet<RWCString,greater<RWCString> > a;
RWTValMultiSetIterator<RWCString,greater<RWCString> > itr(a);
a.insert("John");
a.insert("Steve");
a.insert("Mark");
a.insert("Steve");
for(;itr();)
cout << itr.key() << endl;
return 0;
}
Program Output
Steve
Steve
Mark
John
Public Constructors
RWTValMultiSetIterator<T,C>(RWTValMultiSet< T,C> &h);
Creates an iterator for the multi-set h. The iterator begins in an undefined state and must
be advanced before the first element will be accessible