tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_assignable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_ASSIGNABLE_HPP
4#define TETL_TYPE_TRAITS_IS_ASSIGNABLE_HPP
5
6#include <etl/_config/all.hpp>
7
9
10namespace etl {
11
16template <typename T, typename U>
17struct is_assignable : bool_constant<__is_assignable(T, U)> { };
18
19template <typename T, typename U>
20inline constexpr bool is_assignable_v = __is_assignable(T, U);
21
22} // namespace etl
23
24#endif // TETL_TYPE_TRAITS_IS_ASSIGNABLE_HPP
Definition adjacent_find.hpp:8
constexpr bool is_assignable_v
Definition is_assignable.hpp:20
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
If the expression etl::declval<T>() = etl::declval<U>() is well-formed in unevaluated context,...
Definition is_assignable.hpp:17