Clingo
Loading...
Searching...
No Matches
type_traits.hh
1#pragma once
2
3#include <type_traits>
4
5namespace CppClingo::Util {
6
9
11template <class S, class... L> inline constexpr bool is_among_v = (std::is_same_v<S, L> || ...);
12
14template <class S, class... L> inline constexpr bool matches = is_among_v<std::remove_cvref_t<S>, L...>;
15
17
18} // namespace CppClingo::Util
constexpr bool matches
Check if the type S stripped from cv-qualifiers and references is among the types in L.
Definition type_traits.hh:14
constexpr bool is_among_v
Check if the type S is among the types in L.
Definition type_traits.hh:11