omni::graph::core::AttrKeyHash

Defined in omni/graph/core/Handle.h

struct AttrKeyHash

Make sure to warn developer if an incompatibility is introduced.

This is here so we can use AttrKey and ConstAttributeDataHandle as a key to std::unordered_map. There is another below in ConstAttributeDataHandleHash, intentionally the same as they represent the same data.

See https://www.techiedelight.com/use-std-pair-key-std-unordered_map-cpp/ for a full discussion.

Public Functions

inline std::size_t operator()(const AttrKey &attrKey) const

Return a hash value for the underlying handle data.