3ds Max C++ API Reference
Bitwise_hash< _Kty > Struct Template Reference

Template struct Bitwise_hash. More...

#include <hash.h>

Public Types

typedef _Kty argument_type
 
typedef size_t result_type
 

Public Member Functions

size_t operator() (const _Kty &_Keyval) const
 Computes a Fowler-Noll-Vo FNV-1A hash on the input data, suitable for noncryptographic uses. More...
 

Detailed Description

template<class _Kty>
struct MaxSDK::Util::Bitwise_hash< _Kty >

Template struct Bitwise_hash.

A hash functor for plain old data.

Member Typedef Documentation

◆ argument_type

typedef _Kty argument_type

◆ result_type

Member Function Documentation

◆ operator()()

size_t operator() ( const _Kty &  _Keyval) const
inline

Computes a Fowler-Noll-Vo FNV-1A hash on the input data, suitable for noncryptographic uses.

Parameters
_KeyvalConstant reference to an object of the template class _Kty.
Returns
Returns an FNV-1A hash of size size_t.
See also
Function fnv1a_hash_bytes()
32  { // hash _Keyval to size_t value by pseudorandomizing transform
33  return (fnv1a_hash_bytes((const unsigned char*)&_Keyval, sizeof(_Kty)));
34  }
size_t fnv1a_hash_bytes(const unsigned char *first, size_t count)
From https://github.com/microsoft/VCSamples/ in file VC2015Samples/_Hash_seq/fnv1a....
Definition: fnv1a.hpp:48