13 { obj.toString() } -> std::convertible_to<std::string>;
23 {obj.hash()} -> std::convertible_to<std::size_t>;
34 { std::hash<std::remove_cvref_t<Key>>{}(key) } -> std::convertible_to<std::size_t>;
56 template<fishnet::util::HasHashMethod T>
constexpr std::ostream & operator<<(std::ostream &os, fishnet::util::HasToString auto const &obj) noexcept
Definition ObjectConcepts.hpp:64
Helper concept which checks whether a class has a hash method.
Definition ObjectConcepts.hpp:22
Helper concept which checks whether a class has a toString method.
Definition ObjectConcepts.hpp:12
Helper concept which checks whether a class is hashable, either by having a hash method or by being c...
Definition ObjectConcepts.hpp:32
Helper concept which checks whether a class can be natively used as a key in a map,...
Definition ObjectConcepts.hpp:43
Helper concept which checks whether a class is an object, meaning it has a string representation,...
Definition ObjectConcepts.hpp:51
Definition AlternativeKeyMap.hpp:4
size_t operator()(const fishnet::util::HasHashMethod auto &obj) const
Definition ObjectConcepts.hpp:58