Tools.h++ Class Reference

Table Of Contents
Public Member Operators
RWTValDeque<T>&
operator=(const RWTValDeque<T,allocator>& deq);
RWTValDeque<T>&
operator=(const deque<T>& deq);
Calls the destructor on all elements of self and replaces them by copying all elements of
deq.
bool
operator<(const RWTValDeque<T>& deq) const;
bool
operator<(const deque<T,allocator>& deq) const;
Returns true if self compares lexicographically less than deq, otherwise returns false.
Type T must have well-defined less-than semantics (T::operator<(const T&) or
equivalent).
bool
operator==(const RWTValDeque<T>& deq) const;
bool
operator==(const deque<T,allocator>& deq) const;
Returns true if self compares equal to deq, otherwise returns false. Two collections are
equal if both have the same number of entries, and iterating through both collections
produces, in turn, individual elements that compare equal to each other.
reference
operator()(size_type i);
const_reference
operator()(size_type i) const;
Returns a reference to the ith element of self. Index i should be between 0 and one less
then the number of entries, otherwise the results are undefined--no bounds checking is
performed.
reference
operator[](size_type i);
const_reference
operator[](size_type i) const;
Returns a reference to the ith element of self. Index i must be between 0 and one less then
the number of entries in self, otherwise the function throws an exception of type
RWBoundsErr.