is_trivially_assignable Class
Tests whether a value of From
type can be trivially assigned to To
type
Syntax
template <class To, class From>
struct is_trivially_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 to require no non-trivial operations. Both From
and To
must be complete types, void
, or arrays of unknown bound.
Requirements
Header: <type_traits>
Namespace: std
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ