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.
Loading...
Searching...
No Matches
jh::concepts::has_mbr_hash Concept Reference

Checks whether a type defines a hash() member function. More...

#include <jh/conceptual/hashable.h>

Concept definition

template<typename T>
concept has_mbr_hash = requires(const T& v) {
{ v.hash() } -> std::convertible_to<size_t>;
}
Checks whether a type defines a hash() member function.
Definition hashable.h:106

Detailed Description

Checks whether a type defines a hash() member function.

Equivalent to:

{ v.hash() } -> std::convertible_to<size_t>;