Util--  1.1
Public Member Functions | List of all members
utilmm::hash< Ty > Struct Template Reference

hash functor More...

#include <utilmm/hash/hash.hh>

Inheritance diagram for utilmm::hash< Ty >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::hash< Ty >:
Collaboration graph
[legend]

Public Member Functions

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

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
Tythe type of objects we want to hash
Author
Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr

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
argThe instance we want to hash
Returns
The hash value for arg

The documentation for this struct was generated from the following file:

Generated on Mon Oct 8 2018 08:38:45 for Util-- by doxygen 1.8.11
SourceForge.net Project Page