utilmm::hash< Ty > Struct Template Reference
[Hash function based containers]

hash functor More...

#include <hash.hh>

List of all members.

Public Member Functions

size_t operator() (Ty const &arg) const
 hashing function
size_t operator() (Ty const &arg) const
 hashing function

Detailed Description

template<typename Ty>
struct utilmm::hash< Ty >

hash functor

This class implements a functor to compute the hash value of an object.

Note:
Except for some basic types this class is not fully defined user may define a specialization of some of its function to use it properly. A short example is given in hash/hash.hh file documentation.
Parameters:
Ty the type of objects we want to hash
Author:
Frédéric Py <fpy@laas.fr>

Definition at line 30 of file install/include/utilmm/hash/hash.hh.


Member Function Documentation

template<typename Ty>
size_t utilmm::hash< Ty >::operator() ( Ty const &  arg  )  const

hashing function

This function will compute the hash value of a given instance.

Parameters:
arg The instance we want to hash
Returns:
The hash value for arg
template<typename Ty>
size_t utilmm::hash< Ty >::operator() ( Ty const &  arg  )  const

hashing function

This function will compute the hash value of a given instance.

Parameters:
arg The instance we want to hash
Returns:
The hash value for arg

The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 10:07:42 2013