Tools.h++ Class Reference

Table Of Contents
Persistence
Isomorphic
Example
In this example, a vector of type double is exercised.
//
// tvordvec.cpp
//
#include <rw/tvordvec.h>
#include <iostream.h>
main() {
RWTValOrderedVector<double> vec;
vec.insert(22.0);
vec.insert(5.3);
vec.insert(-102.5);
vec.insert(15.0);
vec.insert(5.3);
cout << vec.entries() << " entries\n" << endl; // Prints "5"
for (int i=0; i<vec.length(); i++)
cout << vec[i] << endl;
return 0;
}
Program Output:
5 entries
22
5.3
-102.5
15
5.3
Related Classes
Classes RWTValDeque<T>, RWTValSlist<T>, and RWTValDlist<T> also provide a Rogue
Wave interface to C++-standard sequence collections.
Class vector<T,allocator> is the C++-standard collection that serves as the underlying
implementation for this class.