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