ECSTASY
All in the name
Loading...
Searching...
No Matches
contains.hpp
Go to the documentation of this file.
1
11
12#ifndef UTIL_META_CONTAINS_HPP_
13#define UTIL_META_CONTAINS_HPP_
14
15#include <type_traits>
16
17namespace util::meta
18{
28 template <typename T, typename... Ts>
29 constexpr inline bool contains = std::disjunction_v<std::is_same<T, Ts>...>;
30
31} // namespace util::meta
32
33#endif /* !UTIL_META_CONTAINS_HPP_ */
Namespace regrouping all meta programmation helper types.
constexpr bool contains
Checks if the type T exists in the types Ts.
Definition contains.hpp:29