23 #ifndef __ccxx_RefSet_hxx 24 #define __ccxx_RefSet_hxx 40 template<
typename T>
class RefSet :
public std::map<T, int>
90 #include <commonc++/RefSetImpl.h++> 94 #endif // __ccxx_RefSet_hxx
A reference-counted set.
Definition: RefSet.h++:40
bool add(T value)
Add a value to the set.
int refCount(T value) const
Get the reference count for a given value.
Definition: AllocationMap.c++:25
RefSet()
Construct a new RefSet.
bool contains(T value) const
Determine if a value is present in the set.