Tools.h++ Class Reference

Table Of Contents
Public Typedefs
typedef set<T,C,allocator> 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 const T& const_reference;
Public Constructors
RWTValSet<T,C>(const C& comp = C());
Constructs an empty set.
RWTValSet<T,C>(const container_type& s);
Constructs a set by copying all elements of s.
RWTValSet<T,C>(const RWTValSet<T,C>& rws);
Copy constructor.
RWTValSet<T,C>
(const T* first,const T* last,const C& comp = C());
Constructs a set 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
RWTValSet<T,C>&
operator=(const RWTValSet<T,C>& s);
RWTValSet<T,C>&
operator=(const container_type& s);
Destroys all elements of self and replaces them by copying all elements of s.
bool
operator<(const RWTValSet<T,C>& s) const;
bool
operator<(const container_type& s) const;
Returns true if self compares lexicographically less than s, otherwise returns false.
Assumes that type T has well-defined less-than semantics (T::operator<(const T&) or
equivalent).
bool
operator==(const RWTValSet<T,C>& s) const;
bool