ORIGINAL
Loading...
Searching...
No Matches
original::Hashable Concept Reference

Concept checking for types that can be hashed. More...

#include <types.h>

Concept definition

template<typename T>
requires(const T& obj) {
{ std::hash<T>{}(obj) } -> std::convertible_to<std::size_t>;
}
Unique ownership smart pointer with move semantics.
Definition ownerPtr.h:37
Concept checking for types that can be hashed.
Definition types.h:252

Detailed Description

Concept checking for types that can be hashed.

Template Parameters
TThe type to be checked

The type must satisfy the concept in this case: By having std::hash<T> specialization

namespace std {
template<> struct hash<MyHashable1> {
size_t operator()(const MyHashable1& obj) const {
return std::hash<int>{}(obj.value);
}
};
}
Standard namespace extensions for original::alternative.
Definition allocator.h:351