Condividi tramite


CDefaultHashTraits::Hash

Call this function to calculate a hash value for a given element.

static ULONG Hash( 
   const T& element  
) throw( );

Parameters

  • element
    The element.

Return Value

Returns the hash value.

Remarks

The default hashing algorithm is very simple: the return value is the element number. Override this function if a more complicated algorithm is required.

Requirements

Header: atlcoll.h

See Also

Reference

CDefaultHashTraits Class