Porytiles
Loading...
Searching...
No Matches
std::hash< porytiles::ShapeMask > Struct Reference

std::hash specialization for ShapeMask. More...

#include <shape_mask.hpp>

Public Member Functions

size_t operator() (const porytiles::ShapeMask &tm) const noexcept
 

Detailed Description

std::hash specialization for ShapeMask.

Provides a hash function for ShapeMask objects to enable their use in standard hash-based containers like std::unordered_set and std::unordered_map. The hash is computed by combining each byte of the mask.

Definition at line 129 of file shape_mask.hpp.

Member Function Documentation

◆ operator()()

size_t std::hash< porytiles::ShapeMask >::operator() ( const porytiles::ShapeMask tm) const
inlinenoexcept

Definition at line 130 of file shape_mask.hpp.


The documentation for this struct was generated from the following file: