Tools.h++ Class Reference

Table Of Contents
Client data may be passed through parameter d.
value_type
removeAt(size_type i);
Removes and returns the item at position i in self. This position must be between zero
and one less then the number of entries in the collection, otherwise the function throws an
exception of type RWBoundsErr.
value_type
removeFirst();
Removes and returns the first item in the collection.
value_type
removeLast();
Removes and returns the first item in the collection.
void
resize(size_type n);
Modify, if necessary, the capacity of the vector to be at least as large as n.
vector<T,allocator>&
std();
const vector<T,allocator>&
std() const;
Returns a reference to the underlying C++-standard collection that serves as the
implementation for self. It is your responsibility not to violate the ordering of the
elements within the collection.
Static Public Data Member
const size_type npos;
This is the value returned by member functions such as index to indicate a non-position.
The value is equal to ~(size_type)0.
Related Global Operators
RWvostream&
operator<<(RWvostream& strm,
const RWTValSortedVector<T,C>& coll);
RWFile&
operator<<(RWFile& strm, const RWTValSortedVector<T,C>& coll);
Saves the collection coll onto the output stream strm, or a reference to it if it has already
been saved.
RWvistream&