MNX Document Model
Loading...
Searching...
No Matches
mnx::util::StaffKeyHash Struct Reference

Hash functor for StaffKey. More...

#include <LayoutHelpers.h>

Public Member Functions

size_t operator() (const StaffKey &k) const noexcept
 Computes a hash value for a StaffKey.
 

Detailed Description

Hash functor for StaffKey.

Enables StaffKey to be used as a key in unordered associative containers.

Member Function Documentation

◆ operator()()

size_t mnx::util::StaffKeyHash::operator() ( const StaffKey k) const
inlinenoexcept

Computes a hash value for a StaffKey.

The hash combines the part ID and staff number. It is intended for small collections and prioritizes simplicity over cryptographic strength.