|
RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
|
Hash a value for use as a QueryGraph memoization key. More...
#include <hasher.hpp>
Public Member Functions | |
| auto | operator() (T const &value) const -> std::size_t |
| Compute the hash of a query input. | |
Hash a value for use as a QueryGraph memoization key.
Most values are hashed through rpnx::serial4::hash, keeping the cache key consistent with QueryGraph's serialization model. std::type_index uses its standard-library hash because it represents process-local type identity rather than serialized application data.
Applications may specialize this class template for input types that are not supported by the default serialization hash.
| T | Value type to hash. |
Definition at line 33 of file hasher.hpp.
|
inline |
Compute the hash of a query input.
| value | Value to hash. |
Definition at line 40 of file hasher.hpp.