Sista v3.0.0-alpha.1
Sista is a C++ lightweight OS-agnostic library for terminal animations and videogames
Loading...
Searching...
No Matches
Public Member Functions | List of all members
std::hash< sista::Path > Struct Reference

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
 

Detailed Description

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.

See also
sista::Path

Member Function Documentation

◆ operator()()

std::size_t std::hash< sista::Path >::operator() ( const sista::Path k) const
inlinenoexcept

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