Namespaces
Variants
Actions

std::is_move_assignable, std::is_trivially_move_assignable, std::is_nothrow_move_assignable

From cppreference.com
< cpp‎ | types
 
 
Metaprogramming library
Type traits
Type categories
(C++11)
(C++11)(DR*)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11) 
(C++11)
(C++11)
Type properties
(C++11)
(C++11)
(C++14)
(C++11)(deprecated in C++26)
(C++11)(until C++20*)
(C++11)(deprecated in C++20)
(C++11)
Type trait constants
Metafunctions
(C++17)
Supported operations
is_move_assignableis_trivially_move_assignableis_nothrow_move_assignable
(C++11)(C++11)(C++11)

Relationships and property queries
Type modifications
(C++11)(C++11)(C++11)
Type transformations
(C++11)(deprecated in C++23)
(C++11)(deprecated in C++23)
(C++11)
(C++11)(until C++20*)(C++17)

(C++11)
(C++17)
Compile-time rational arithmetic
Compile-time integer sequences
 
Defined in header <type_traits>
template< class T >
struct is_move_assignable;
(1) (since C++11)
template< class T >
struct is_trivially_move_assignable;
(2) (since C++11)
template< class T >
struct is_nothrow_move_assignable;
(3) (since C++11)
 Type trait  The value of the member constant value
T is a referenceable type  T is not a referenceable type 
(1) std::is_assignable<T&, T&&>::value false
(2) std::is_trivially_assignable<T&, T&&>::value
(3) std::is_nothrow_assignable<T&, T&&>::value

If T is not a complete type, (possibly cv-qualified) void, or an array of unknown bound, the behavior is undefined.

If an instantiation of a template above depends, directly or indirectly, on an incomplete type, and that instantiation could yield a different result if that type were hypothetically completed, the behavior is undefined.

If the program adds specializations for any of the templates described on this page, the behavior is undefined.

Contents

[edit] Helper variable templates

template< class T >

inline constexpr bool is_move_assignable_v =

    is_move_assignable<T>::value;
(since C++17)
template< class T >

inline constexpr bool is_trivially_move_assignable_v =

    is_trivially_move_assignable<T>::value;
(since C++17)
template< class T >

inline constexpr bool is_nothrow_move_assignable_v =

    is_nothrow_move_assignable<T>::value;
(since C++17)

Inherited from