Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::util::Hashable Concept Reference

Helper concept which checks whether a class is hashable, either by having a hash method or by being compatible with std::hash. More...

#include <ObjectConcepts.hpp>

Concept definition

template<typename Key>
concept fishnet::util::Hashable = HasHashMethod<Key> || requires(Key key)
{
{ std::hash<std::remove_cvref_t<Key>>{}(key) } -> std::convertible_to<std::size_t>;
}
Helper concept which checks whether a class has a hash method.
Definition ObjectConcepts.hpp:22
Helper concept which checks whether a class is hashable, either by having a hash method or by being c...
Definition ObjectConcepts.hpp:32

Detailed Description

Helper concept which checks whether a class is hashable, either by having a hash method or by being compatible with std::hash.

Template Parameters
Key