Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 983 Bytes

is-nothrow-assignable-class.md

File metadata and controls

40 lines (27 loc) · 983 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: is_nothrow_assignable Class
is_nothrow_assignable Class
11/04/2016
type_traits/std::is_nothrow_assignable
is_nothrow_assignable
aa3aca92-308b-4b1d-b3f3-c54216c48fe7

is_nothrow_assignable Class

Tests whether a value of From type can be assigned to To type and the assignment is known not to throw.

Syntax

template <class To, class From>
struct is_nothrow_assignable;

Parameters

To
The type of the object that receives the assignment.

From
The type of the object that provides the value.

Remarks

The expression declval<To>() = declval<From>() must be well-formed and must be known to the compiler not to throw. Both From and To must be complete types, void, or arrays of unknown bound.

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>