MalariaSentinel — C++ reference
The contract-defining headers of the ABM engine
Loading...
Searching...
No Matches
mal_abm_fast::PairHash Struct Reference

#include <coordinator.hpp>

Public Member Functions

std::size_t operator() (const std::pair< int32_t, int32_t > &p) const noexcept

Detailed Description

Hash functor for (row, col) pairs (used by the candidate-patch registry). Packs the two int32s into an int64 then hashes that.

Member Function Documentation

◆ operator()()

std::size_t mal_abm_fast::PairHash::operator() ( const std::pair< int32_t, int32_t > & p) const
inlinenoexcept

Hash a grid cell (row, col) pair for the candidate-patch registry: packs the two int32 coordinates into one int64 and hashes it.


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