Util--  1.1
Public Member Functions | List of all members
utilmm::smart::ref_count::hash_ptr< Ty, Hash > Struct Template Reference

Special hash functor for utilmm::smart::ref_count::uniq_memory. More...

#include <utilmm/smart/bits/uniq_memory.hh>

Inheritance diagram for utilmm::smart::ref_count::hash_ptr< Ty, Hash >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::smart::ref_count::hash_ptr< Ty, Hash >:
Collaboration graph
[legend]

Public Member Functions

size_t operator() (Ty const *arg) const
 Hashing call operator. More...
 

Detailed Description

template<typename Ty, class Hash>
struct utilmm::smart::ref_count::hash_ptr< Ty, Hash >

Special hash functor for utilmm::smart::ref_count::uniq_memory.

This functor is an hash functor used by the utilmm::smart::ref_count::uniq_memory class. To extract the hash value of the value pointed by a cont pointer

Parameters
TyThe type of pointed cell
HashA hash fucntor for Ty
Author
Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr

Member Function Documentation

◆ operator()()

template<typename Ty , class Hash >
size_t utilmm::smart::ref_count::hash_ptr< Ty, Hash >::operator() ( Ty const *  arg) const

Hashing call operator.

Parameters
argA cont pointer

This function compute the hash value of *arg

Returns
The computed hash value
Precondition
arg has to point to a valid cell

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

Generated on Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page