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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru