CnC
Public Member Functions
cnc_tag_hash_compare< T > Struct Template Reference

Provides hash and equality operators for hashing as used by item_collections. More...

List of all members.

Public Member Functions

size_t hash (const T &x) const
bool equal (const T &x, const T &y) const

Detailed Description

template<class T>
struct cnc_tag_hash_compare< T >

Provides hash and equality operators for hashing as used by item_collections.

It is recommended to specilialize cnc_hash and/or cnc_equal rather than cnc_tag_hash_compare

Definition at line 185 of file cnc_tag_hash_compare.h.


Member Function Documentation

bool equal ( const T &  x,
const T &  y 
) const [inline]
Returns:
true if a equals b, false otherwise

Definition at line 193 of file cnc_tag_hash_compare.h.

    {
        return cnc_equal< T >::operator()( x, y );
    }
size_t hash ( const T &  x) const [inline]
Returns:
a unique integer for the given tag

Definition at line 188 of file cnc_tag_hash_compare.h.

    { 
        return cnc_hash< T >::operator()( x );
    }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerator Friends