Tools.h++ Class Reference

Table Of Contents
set2.insert("one");
cout << ((set1.isEquivalent(set2)) ? "TRUE" : "FALSE") << endl;
// Prints "FALSE"
set2.intersection(set1);
set1.clear();
cout << set1.entries() << endl; // Prints "0"
cout << set2.entries() << endl; // Prints "1"
return 0;
}
Related Classes
Class RWTValHashMultiSet<T,H,EQ> offers the same interface to a collection that accepts
multiple items that compare equal to each other.
Class rw_hashset<T,H,EQ> is the C++-standard compliant collection that serves as the
underlying implementation for RWTValHashSet<T,H,EQ>.
Public Typedefs
typedef rw_hashset<T,H,EQ> 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
RWTValHashSet<T,H,EQ>
(size_type sz = 1024,const H& h = H(),const EQ& eq= EQ());
Constructs an empty set. The underlying hash table representation will have sz buckets,
will use h for its hashing function and will use eq to determine equality between elements
RWTValHashSet<T,H,EQ>(const rw_hashset<T,H,EQ>& s);
Constructs a set by copying all elements of s.
RWTValHashSet<T,H,EQ>(const RWTValHashSet<T,H,EQ>& rws);
Copy constructor.