Blender  V2.93
Public Member Functions | List of all members
blender::DefaultHash< T > Struct Template Reference

#include <BLI_hash.hh>

Public Member Functions

uint64_t operator() (const T &value) const
 

Detailed Description

template<typename T>
struct blender::DefaultHash< T >

If there is no other specialization of #DefaultHash for a given type, try to call hash() on the value. If there is no such method, this will result in a compiler error. Usually that means that you have to implement a hash function using one of three strategies listed above.

In the case of an enum type, the default hash is just to cast the enum value to an integer.

Definition at line 94 of file BLI_hash.hh.

Member Function Documentation

◆ operator()()

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

Definition at line 95 of file BLI_hash.hh.


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