Phi
is_nothrow_move_assignable.hpp
1 #ifndef INCG_PHI_CORE_TYPE_TRAITS_IS_NOTHROW_MOVE_ASSIGNABLE_HPP
2 #define INCG_PHI_CORE_TYPE_TRAITS_IS_NOTHROW_MOVE_ASSIGNABLE_HPP
3 
4 #include "phi/phi_config.hpp"
5 
6 #if PHI_HAS_EXTENSION_PRAGMA_ONCE()
7 # pragma once
8 #endif
9 
10 #include "phi/compiler_support/constexpr.hpp"
11 #include "phi/compiler_support/inline_variables.hpp"
12 #include "phi/type_traits/add_lvalue_reference.hpp"
13 #include "phi/type_traits/add_rvalue_reference.hpp"
14 #include "phi/type_traits/integral_constant.hpp"
15 #include "phi/type_traits/is_nothrow_assignable.hpp"
16 
17 DETAIL_PHI_BEGIN_NAMESPACE()
18 
19 template <typename TypeT>
21  : public is_nothrow_assignable<add_lvalue_reference_t<TypeT>, add_rvalue_reference_t<TypeT>>
22 {};
23 
24 template <typename TypeT>
26  : public integral_constant<bool, !is_nothrow_move_assignable<TypeT>::value>
27 {};
28 
29 #if PHI_HAS_FEATURE_VARIABLE_TEMPLATE()
30 
31 template <typename TypeT>
32 PHI_INLINE_VARIABLE PHI_CONSTEXPR bool is_nothrow_move_assignable_v =
34 
35 template <typename TypeT>
36 PHI_INLINE_VARIABLE PHI_CONSTEXPR bool is_not_nothrow_move_assignable_v =
38 
39 #endif
40 
41 DETAIL_PHI_END_NAMESPACE()
42 
43 #endif // INCG_PHI_CORE_TYPE_TRAITS_IS_NOTHROW_MOVE_ASSIGNABLE_HPP
Definition: integral_constant.hpp:19
Definition: is_nothrow_move_assignable.hpp:20
Definition: is_nothrow_move_assignable.hpp:25
Definition: is_nothrow_assignable.hpp:101