Blender V5.3
blender::DefaultHash< T > Struct Template Reference

#include <BLI_hash.hh>

Public Member Functions

constexpr uint64_t operator() (const T &value) const

Detailed Description

template<typename T>
requires (std::is_integral_v<T> && !std::is_same_v<T, bool>)
struct blender::DefaultHash< T >

We cannot make any assumptions about the distribution of keys, so use a trivial hash function by default. The default probing strategy is designed to take all bits of the hash into account to avoid worst case behavior when the lower bits are all zero. Special hash functions can be implemented when more knowledge about a specific key distribution is available.

Definition at line 143 of file BLI_hash.hh.

Member Function Documentation

◆ operator()()

template<typename T>
uint64_t blender::DefaultHash< T >::operator() ( const T & value) const
inlineconstexpr

Definition at line 144 of file BLI_hash.hh.

References T.


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