Tools.h++ Class Reference

Table Of Contents
typedef T value_type;
typedef T& reference;
typedef const T& const_reference;
Public Constructors
RWTValDlist<T>();
Constructs an empty, doubly-linked list.
RWTValDlist<T>(const list<T,allocator>& lst);
Constructs a doubly-linked list by copying all elements of lst.
RWTValDlist<T>(const RWTValDlist<T>& rwlst);
Copy constructor.
RWTValDlist<T>(size_type n, const T& val = T());
Constructs a doubly-linked list with n elements, each initialized to val.
RWTValDlist<T>(const T* first, const T* last);
Constructs a doubly-linked list by copying elements from the array of Ts pointed to by first,
up to, but not including, the element pointed to by last.
Public Member Operators
RWTValDlist<T>&
operator=(const RWTValDlist<T>& lst);
RWTValDlist<T>&
operator=(const list<T,allocator>& lst);
Calls the destructor on all elements of self and replaces them by copying all elements of lst.
bool
operator<(const RWTValDlist<T>& lst) const;
bool
operator<(const list<T,allocator>& lst) const;
Returns true if self compares lexicographically less than lst, otherwise returns false. Type T
must have well-defined less-than semantics (T::operator<(const T&) or equivalent).
bool
operator==(const RWTValDlist<T>& lst) const;
bool
operator==(const list<T,allocator>& lst) const;
Returns true if self compares equal to lst, 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