tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_nothrow_assignable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_NOTHROW_ASSIGNABLE_HPP
4#define TETL_TYPE_TRAITS_IS_NOTHROW_ASSIGNABLE_HPP
5
9
10namespace etl {
11
16template <typename T, typename U>
18
19template <typename T, typename U>
21struct is_nothrow_assignable<T, U> : bool_constant<noexcept(etl::declval<T>() = etl::declval<U>())> { };
22
23template <typename T, typename U>
25
26} // namespace etl
27
28#endif // TETL_TYPE_TRAITS_IS_NOTHROW_ASSIGNABLE_HPP
Definition adjacent_find.hpp:8
constexpr bool is_assignable_v
Definition is_assignable.hpp:20
constexpr bool is_nothrow_assignable_v
Definition is_nothrow_assignable.hpp:24
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
bool_constant< false > false_type
Definition bool_constant.hpp:14
static constexpr bool value
Definition integral_constant.hpp:10
If the expression etl::declval<T>() = etl::declval<U>() is well-formed in unevaluated context,...
Definition is_nothrow_assignable.hpp:17