tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
disjunction.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_DISJUNCTION_HPP
4#define TETL_TYPE_TRAITS_DISJUNCTION_HPP
5
8
9namespace etl {
10
13template <typename... B>
14struct disjunction : bool_constant<(B::value or ...)> { };
15
16template <typename... B>
17inline constexpr bool disjunction_v = disjunction<B...>::value;
18
19} // namespace etl
20
21#endif // TETL_TYPE_TRAITS_DISJUNCTION_HPP
Definition adjacent_find.hpp:8
constexpr bool disjunction_v
Definition disjunction.hpp:17
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
Forms the logical disjunction of the type traits B..., effectively performing a logical OR on the seq...
Definition disjunction.hpp:14