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// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4#ifndef TETL_TYPE_TRAITS_DISJUNCTION_HPP
5#define TETL_TYPE_TRAITS_DISJUNCTION_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8#include <etl/_type_traits/conditional.hpp>
9
10namespace etl {
11
12/// Forms the logical disjunction of the type traits B..., effectively
13/// performing a logical OR on the sequence of traits.
14template <typename... B>
15struct disjunction : bool_constant<(B::value or ...)> { };
16
17template <typename... B>
18inline constexpr bool disjunction_v = disjunction<B...>::value;
19
20} // namespace etl
21
22#endif // TETL_TYPE_TRAITS_DISJUNCTION_HPP
Definition adjacent_find.hpp:9
constexpr bool disjunction_v
Definition disjunction.hpp:18
Forms the logical disjunction of the type traits B..., effectively performing a logical OR on the seq...
Definition disjunction.hpp:15