libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::hashers::murmur2< A > Struct Template Reference

An implementation of the MurmurHash2 hash function. More...

#include <hash.hpp>

Inherits std::unary_function< A, std::size_t >.

Public Types

typedef std::unary_function< A, std::size_t >::result_type result_type
 
typedef std::unary_function< A, std::size_t >::argument_type argument_type
 

Public Member Functions

result_type __fastcall FORCE_INLINE operator() (const argument_type &d, const result_type seed=0) const noexcept(true)
 Generate the hash of the value. More...
 

Detailed Description

template<typename A>
struct jmmcg::LIBJMMCG_VER_NAMESPACE::hashers::murmur2< A >

An implementation of the MurmurHash2 hash function.

From .

Definition at line 43 of file hash.hpp.

Member Typedef Documentation

◆ argument_type

template<typename A >
typedef std::unary_function<A, std::size_t>::argument_type jmmcg::LIBJMMCG_VER_NAMESPACE::hashers::murmur2< A >::argument_type

Definition at line 52 of file hash.hpp.

◆ result_type

template<typename A >
typedef std::unary_function<A, std::size_t>::result_type jmmcg::LIBJMMCG_VER_NAMESPACE::hashers::murmur2< A >::result_type

Definition at line 51 of file hash.hpp.

Member Function Documentation

◆ operator()()

template<typename A >
result_type __fastcall FORCE_INLINE jmmcg::LIBJMMCG_VER_NAMESPACE::hashers::murmur2< A >::operator() ( const argument_type d,
const result_type  seed = 0 
) const
inlinenoexcept

Generate the hash of the value.

Parameters
dAn STL-container type holding the value to be hashed, that must be aligned.
seedThe seed value for hashing.
Returns
The hash of the value.

Definition at line 60 of file hash.hpp.


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