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
3#ifndef TETL_TYPE_TRAITS_CONJUNCTION_HPP
4#define TETL_TYPE_TRAITS_CONJUNCTION_HPP
5
8
9namespace etl {
10
13template <typename... B>
14struct conjunction : bool_constant<(B::value && ...)> { };
15
16template <typename... B>
17inline constexpr bool conjunction_v = conjunction<B...>::value;
18
19} // namespace etl
20
21#endif // TETL_TYPE_TRAITS_CONJUNCTION_HPP
Definition adjacent_find.hpp:8
constexpr bool conjunction_v
Definition conjunction.hpp:17
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
Forms the logical conjunction of the type traits B..., effectively performing a logical AND on the se...
Definition conjunction.hpp:14