ifw-fgf 1.0.0-pre1
|
A custom hash function for AndorStatEnumKey, which supports hashing of variant-like types (e.g., std::variant). More...
#include <commAdapter.hpp>
Public Member Functions | |
std::size_t | operator() (const AndorCtrlEnumKey &key) const |
Generates a hash value for the given AndorCtrlEnumKey. | |
A custom hash function for AndorStatEnumKey, which supports hashing of variant-like types (e.g., std::variant).
This struct provides a way to generate a hash value for an instance of AndorCtrlEnumKeyHash, which may contain different types, including enums. The hash function applies the standard C++ hash function (std::hash) to the underlying type of the value stored in the variant.
|
inline |
Generates a hash value for the given AndorCtrlEnumKey.
This function visits the variant (AndorCtrlEnumKey) and applies the appropriate hash function to the contained value. If the value is an enum, it uses its underlying type for hashing.
key | The AndorCtrlEnumKey instance to hash. This is expected to be a variant-like type. |