Pogosim
Loading...
Searching...
No Matches
GridCellHash Struct Reference

Hash functor for GridCell. More...

#include <distances.h>

Public Member Functions

std::size_t operator() (const GridCell &cell) const
 Computes a hash value for a GridCell.

Detailed Description

Hash functor for GridCell.

This structure provides a hash function for GridCell objects, allowing them to be used as keys in unordered associative containers.

Member Function Documentation

◆ operator()()

std::size_t GridCellHash::operator() ( const GridCell & cell) const
inline

Computes a hash value for a GridCell.

Combines the hash of the x and y coordinates.

Parameters
cellThe GridCell to hash.
Returns
std::size_t The computed hash value.

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