Tools.h++ Class Reference

Table Of Contents
Persistence
Isomorphic
Example
In this example, a pointer-based vector of type RWDate is exercised.
//
// tporddat.cpp
//
#include <rw/tpordvec.h>
#include <rw/rwdate.h>
#include <iostream.h>
main(){
RWTPtrOrderedVector<RWDate> week(7);
RWDate begin; // Today's date
for (int i=0; i<7; i++)
week.insert(new RWDate(begin++));
for (i=0; i<7; i++)
cout << *week[i] << endl;
return 0;
}
Program Output:
05/31/95
06/01/95
06/02/95
06/03/95
06/04/95
06/05/95
06/06/95
Related Classes
Classes RWTPtrDeque<T>, RWTPtrSlist<T>, and RWTPtrDlist<T> also provide a Rogue
Wave pointer-based interface to C++-standard sequence collections.
Class vector<T*,allocator> is the C++-standard collection that serves as the underlying