Tools.h++ Class Reference

Table Of Contents
Related Classes
Class RWTValMultiMap<K,T,C> offers the same interface to a collection that accepts multiple
keys that compare equal to each other. RWTValSet<T,C> maintains a collection of keys without
the associated values.
Class map<K,T,C,allocator> is the C++-standard collection that serves as the underlying
implementation for this collection.
Public Typedefs
typedef map<K,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 pair <const K,T> value_type;
typedef pair <const K,T>& reference;
typedef const pair <const K,T>& const_reference;
Public Constructors
RWTValMap<K,T,C>(const C& comp = C());
Constructs an empty map with comparator comp.
RWTValMap<K,T,C>(const container_type& m);
Constructs a map by copying all elements of m.
RWTValMap<K,T,C>(const RWTValMap<K,T,C>& rwm);
Copy constructor.
RWTValMap<K,T,C>(const value_type* first,
const value_type* last,const C& comp = C());
Constructs a map by copying elements from the array of value_type pairs pointed to by
first, up to, but not including, the pair pointed to by last.
Public Member Operators
RWTValMap<K,T,C>&
operator=(const RWTValMap<K,T,C>& m);
RWTValMap<K,T,C>&
operator=(const container_type& m);
Destroys all elements of self and replaces them by copying all associations from m.
bool
operator<(const RWTValMap<K,T,C>& m) const;