Tools.h++ Class Reference

Table Of Contents
Public Typedefs
typedef rw_slist<T*> container_type;
typedef container_type::size_type size_type;
typedef container_type::difference_type difference_type;
typedef container_type::iterator iterator;
typedef container_type::const_iterator const_iterator;
typedef T* value_type;
typedef T*& reference;
typedef T*const& const_reference;
Public Constructors
RWTPtrSlist<T>();
Constructs an empty, singly-linked list.
RWTPtrSlist<T>(const RWTPtrSlist<T>& rwlst);
Copy constructor.
RWTPtrSlist<T>(const rw_slist<T*>& lst);
Construct a singly linked list by copying all elements of lst.
RWTPtrSlist<T>(size_type n, const T* a=0);
Constructs a singly-linked list with n elements, each initialized to a.
RWTPtrSlist<T>(T* const* first, T* const* last);
Constructs a singly-linked list by copying elements from the array of T*s pointed to by
first, up to, but not including, the element pointed to by last.
Public Member Operators
RWTPtrSlist<T>&
operator=(const RWTPtrSlist<T>& lst);
RWTPtrSlist<T>&
operator=(const rw_slist<T*>& lst);
Empties self then inserts all elements of lst.
bool
operator<(const RWTPtrSlist<T>& lst) const;
Returns true if self compares lexicographically less than lst, otherwise returns false. Items
in each collection are dereferenced before being compared.
bool
operator==(const RWTPtrSlist<T>& lst) const;