gz-cpp-util 1.3
A c++20 library containing various utilities
concepts.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <concepts>
4#include <ranges>
5
6namespace gz::util {
8 template<typename T, typename... PackTypes>
9 concept IsInPack = (std::same_as<T, PackTypes> || ...);
10
11 template<typename T>
12 concept False = false;
13
15 template<typename T>
16 concept IntegralForwardRange = std::ranges::forward_range<T> and std::integral<std::ranges::range_value_t<T>>;
17}
18
Forward range holding integers.
Definition: concepts.hpp:16
Satisfied when T is in PackTypes.
Definition: concepts.hpp:9