tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
conjunction.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_CONJUNCTION_HPP
5#define TETL_TYPE_TRAITS_CONJUNCTION_HPP
6
7#include <etl/_type_traits/bool_constant.hpp>
8#include <etl/_type_traits/conditional.hpp>
9
10namespace etl {
11
12/// \brief Forms the logical conjunction of the type traits B..., effectively
13/// performing a logical AND on the sequence of traits.
14template <typename... B>
15struct conjunction : bool_constant<(B::value && ...)> { };
16
17template <typename... B>
18inline constexpr bool conjunction_v = conjunction<B...>::value;
19
20} // namespace etl
21
22#endif // TETL_TYPE_TRAITS_CONJUNCTION_HPP
Definition adjacent_find.hpp:9
constexpr bool conjunction_v
Definition conjunction.hpp:18
Forms the logical conjunction of the type traits B..., effectively performing a logical AND on the se...
Definition conjunction.hpp:15