Hash functions

Hash functions for elementary types.

o static inline unsigned int hash
        (const unsigned int & x)
Hashing function (unsigned int).
o static inline unsigned int hash
        (const int & x)
Hashing function (int).
o static inline unsigned int hash
        (const long & x)
Hashing function (long).
o static inline unsigned int hash
        (const unsigned long & x)
Hashing function (unsigned long).
o static inline unsigned int hash
        (void * const & x)
Hashing function (void *).
o static inline unsigned int hash
        (const void * const & x)
Hashing function (void *).
o static inline unsigned int hash
        (const float & x)
Hashing function (float).
o static inline unsigned int hash
        (const double & x)
Hashing function (double).
These functions let you use template class GMap with the corresponding elementary types. The returned hash code may be reduced to an arbitrary range by computing its remainder modulo the upper bound of the range.

Alphabetic index Hierarchy of classes


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.