Motion Master
Loading...
Searching...
No Matches
Classes
std Namespace Reference

Specialization of std::hash for std::pair<uint16_t, uint8_t>. More...

Classes

struct  hash< std::pair< uint16_t, uint8_t > >
 

Detailed Description

Specialization of std::hash for std::pair<uint16_t, uint8_t>.

This specialization allows std::unordered_map to use std::pair<uint16_t, uint8_t> as a key type. It combines the hash values of the first and second elements of the pair to create a unique hash value.

The hash is computed by XORing the hash values of the two elements, with the second element's hash shifted to reduce collisions.