64template <>
struct hash<eduart::com::ComInterfaceID> {
71 auto h1 = std::hash<int>{}(
static_cast<int>(
id.type));
72 auto h2 = std::hash<std::string>{}(
id.name);
73 return h1 ^ (h2 << 1);
InterfaceType
Type of the communication interface.
Definition ComInterfaceID.hpp:22
Definition ComInterfaceID.hpp:32
bool operator!=(const ComInterfaceID &other) const
Inequality operator for ComInterfaceID.
Definition ComInterfaceID.hpp:50
bool operator==(const ComInterfaceID &other) const
Equality operators for ComInterfaceID.
Definition ComInterfaceID.hpp:46
std::string name
Name of the communication interface.
Definition ComInterfaceID.hpp:37
InterfaceType type
Type of the communication interface.
Definition ComInterfaceID.hpp:34
std::size_t operator()(const eduart::com::ComInterfaceID &id) const noexcept
Compute hash value for a ComInterfaceID.
Definition ComInterfaceID.hpp:70