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::Path to allow usage in unordered containers. More...
#include <field.hpp>
Public Member Functions | |
std::size_t | operator() (const sista::Path &k) const noexcept |
Specialization of std::hash for sista::Path to allow usage in unordered containers.
This specialization provides a hash function for the sista::Path struct, enabling its use as a key in unordered containers like std::unordered_set or std::unordered_map. The hash is computed based on the begin and end coordinates of the path.
|
inlinenoexcept |