Sista v3.0.0-alpha.1
Sista is a C++ lightweight OS-agnostic library for terminal animations and videogames
|
Specialization of std::hash for sista::Coordinates. More...
#include <coordinates.hpp>
Public Member Functions | |
std::size_t | operator() (const sista::Coordinates &) const noexcept |
Specialization of std::hash for sista::Coordinates.
This specialization allows Coordinates to be used as keys in hash-based containers like std::unordered_map and std::unordered_set. The hash function combines the y and x coordinates into a single size_t value.
|
noexcept |