|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Concept for types that can be hashed through any supported mechanism. More...
#include <jh/conceptual/hashable.h>
Concept for types that can be hashed through any supported mechanism.
A type T satisfies extended_hashable if it supports at least one of the following:
std::hash<T> specialization hash() free function T::hash() The precedence follows:
std::hash<T>{}(t) > hash(t) > t.hash()
This ensures that standard hash behavior dominates if explicitly defined, while still enabling semantic extensions and user customization.