cgrapht 1.0.0
A modern C++20 header-only graph library
Loading...
Searching...
No Matches
commons.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <cstddef>
8#include <functional>
9
10namespace cgrapht {
11
20 template <typename T>
21 concept Hashable = requires(T a) {
22 { std::hash<T>{}(a) } -> std::convertible_to<std::size_t>;
23 };
24
25}
Concept for types hashable by std::hash.
Definition commons.hpp:21