Tools.h++ Class Reference

Table Of Contents
Replaces all elements t in self such that the expression ((*fn)(t,d))is true. Returns the
number of items replaced. fn points to a user-defined tester function which must have
prototype:
bool yourTester(const_reference a, void* d);
Client data may be passed through parameter d.
void
resize(size_type n);
Modify the capacity of the vector to be at least as large as n. The function has no effect if
the capacity is already as large as n.
void
sort();
Sorts the collection using the less-than operator to compare elements.
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. This reference may be used freely, providing access to the
C++-standard interface as well as interoperability with other software components that
make use of the C++-standard collections.
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 RWTValOrderedVector<T>& coll);
RWFile&
operator<<(RWFile& strm, const RWTValOrderedVector<T>& coll);
Saves the collection coll onto the output stream strm, or a reference to it if it has already
been saved.
RWvistream&
operator>>(RWvistream& strm, RWTValOrderedVector<T>& coll);
RWFile&
operator>>(RWFile& strm, RWTValOrderedVector<T>& coll);