NAME
OTC_HashActions -
Default actions for calculating a hash value for an object.
SYNOPSIS
#include <OTC/collctn/hashactn.hh>
template<class T>
class OTC_HashActions
{
public:
inline static int hash(T const& theItem);
static int hash(T const& theItem);
};
CLASS TYPE
Static
DESCRIPTION
The default method used for determining a hash value for an
object. This class may be overridden for a particular type,
to define type specific behaviour.
ACTIONS
inline static int hash(T const& theItem);
Returns a hash value for theItem
.
NOTES
If the default behaviour is used, the type T
, must be able to be
converted to an integer.
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1991 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED