14template <
class T>
class hashset;
#define CONCRETE_TEMPLATE_CODE(PTR, TT, T)
Macro used to define the implementation of a concrete smart pointer with reference counting for a sin...
The hashset_rep class represents an entry in a hash set.
hashset_rep(int n2, int max2=1)
Construct a new hashset_rep object with specified values.
friend int N LESSGTR(hashset< T > h)
~hashset_rep()
Destroy the hashset_rep object.
hashset_rep()
Construct a new hashset_rep object with default values.
The hashset class represents a hash set.
CONCRETE_TEMPLATE(hashset, T)
hashset(int n=1, int max=1)
Construct a new hashset object with specified values.
The list class represents a linked list.
void tm_delete_array(C *Ptr)
bool operator<(hashset< T > h1, hashset< T > h2)
Less-than comparison operator for hash sets.
bool operator<=(hashset< T > h1, hashset< T > h2)
Less-than-or-equal-to comparison operator for hash sets.
hashset< T > copy(hashset< T > h)
bool operator==(hashset< T > h1, hashset< T > h2)
Equality comparison operator for hash sets.
tm_ostream & operator<<(tm_ostream &out, hashset< T > h)
int N(hashset< T > h)
Get the number of entries in a hash set.
SI max(SI i, SI j)
Returns the maximum of two signed integers.
Structure representing a concrete object with a reference count.