|
Blender V5.3
|
#include <bmesh_polygon.hh>
Public Member Functions | |
| constexpr uint64_t | operator() (const T &value) const |
| template<typename U> | |
| constexpr uint64_t | operator() (const U &value) const |
If there is no other specialization of DefaultHash for a given type, look for a hash function on the type itself. Implementing a hash() method on a type is often significantly easier than specializing DefaultHash. As a fallback, it also tries to use the #hash_value function which some libraries implement for their types.
To support heterogeneous lookup, a type can also implement a static hash_as(const OtherType &) function.
In the case of an enum type, the default hash is just to cast the enum value to an integer.
Definition at line 85 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 86 of file bmesh_polygon.hh.
|
inlineconstexpr |
Definition at line 114 of file bmesh_polygon.hh.