CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::CHashable Concept Reference

Declaration of the concept "Hashable", which is satisfied by any type 'T' such that for values 'a' of type 'T', the expression std::hash<T>{}(a) compiles and its result is convertible to std::size_t. More...

#include <CeresEngine/Concepts.hpp>

Concept definition

template<typename T>
concept CeresEngine::CHashable = requires(T a) {
std::is_convertible_v<decltype(std::hash<T>{}(a)), std::size_t>;
}
Declaration of the concept "Hashable", which is satisfied by any type 'T' such that for values 'a' of...
Definition Concepts.hpp:32

Detailed Description

Declaration of the concept "Hashable", which is satisfied by any type 'T' such that for values 'a' of type 'T', the expression std::hash<T>{}(a) compiles and its result is convertible to std::size_t.