Tools.h++ Class Reference

Table Of Contents
Public Typedefs
typedef rw_slist<T> container_type;
typedef container_type::iterator iterator;
typedef container_type::const_iterator const_iterator;
typedef container_type::size_type size_type;
typedef T value_type;
typedef T& reference;
typedef const T& const_reference;
Public Constructors
RWTValSlist<T>();
Constructs an empty, singly-linked list.
RWTValSlist<T>(const rw_slist<T>& lst);
Constructs a singly-linked list by copying all elements of lst.
RWTValSlist<T>(const RWTValSlist<T>& rwlst);
Copy constructor.
RWTValSlist<T>(size_type n, const T& val = T());
Constructs a singly-linked list with n elements, each initialized to val.
RWTValSlist<T>(const T* first, const T* last);
Constructs a singly-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
RWTValSlist<T>&
operator=(const RWTValSlist<T>& lst);
RWTValSlist<T>&
operator=(const rw_slist<T>& lst);
Calls the destructor on all elements of self and replaces them by copying all elements of
lst.
bool
operator<(const RWTValSlist<T>& lst) const;
bool
operator<(const rw_slist<T>& 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).