Tools.h++ Class Reference

Table Of Contents
Example
#include <rw/tvvector.h>
#include <rw/rwdate.h>
#include <rw/rstream.h>
main() {
RWTValVector<RWDate> week(7);
RWDate begin; // Today's date
for (int i=0; i<7; i++)
week[i] = begin++;
for (i=0; i<7; i++)
cout << week[i] << endl;
return 0;
}
Program output:
March 16, 1996
March 17, 1996
March 18, 1996
March 19, 1996
March 20, 1996
March 21, 1996
March 22, 1996
Public Constructors
RWTValVector<T>();
Constructs an empty vector of length zero.
RWTValVector<T>(size_t n);
Constructs a vector of length n. The values of the elements will be set by the default
constructor of class T. For a built in type this can (and probably will) be garbage.
RWTValVector<T>(size_t n, const T& ival);
Constructs a vector of length n, with each element initialized to the value ival.
RWTValVector<T>(const RWTValVector& v);
Constructs self as a copy of v. Each element in v will be copied into self.
~RWTValVector<T>();