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.
14/// \ingroup type_traits
15template <typename... B>
16struct disjunction : bool_constant<(B::value or ...)> { };
17
18/// \ingroup type_traits
19template <typename... B>
20inline constexpr bool disjunction_v = disjunction<B...>::value;
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_DISJUNCTION_HPP
constexpr bool disjunction_v
Definition disjunction.hpp:20
Definition adjacent_find.hpp:9
Forms the logical disjunction of the type traits B..., effectively performing a logical OR on the seq...
Definition disjunction.hpp:16