class template
<type_traits>
std::is_nothrow_move_constructible
template <class T> struct is_nothrow_move_constructible;
Is move constructible throwing no exceptions
- integral_constant
- is_nothrow_move_constructible
Trait class that identifies whether T is a move constructible type, and such construction is known not to throw any exception.
This class inherits from integral_constant as being either true_type or false_type.
Template parameters
- T
- A complete type, or void (possible cv-qualified), or an array of unknown bound.
Member types
Inherited from integral_constant:| member type | definition |
|---|---|
| value_type | bool |
| type | either true_type or false_type |
Member constants
Inherited from integral_constant:| member constant | definition |
|---|---|
| value | either true or false |
Member functions
Inherited from integral_constant:- operator bool
- Returns value (public member function)
Example
|
|
Output:
is_nothrow_move_constructible: int: true A: true B: false C: true
See also
- is_move_constructible
- Is move constructible (class template)
- is_nothrow_constructible
- Is constructible throwing no exceptions (class template)
- is_nothrow_default_constructible
- Is default constructible throwing no exceptions (class template)
- is_nothrow_copy_constructible
- Is copy constructible throwing no exceptions (class template)