once_flag Structure
Represents a struct
that is used with the template function call_once to ensure that initialization code is called only once, even in the presence of multiple threads of execution.
Syntax
struct once_flag
{
constexpr once_flag() noexcept;
};
Remarks
The once_flag
struct
has only a default constructor.
Objects of type once_flag
can be created, but they cannot be copied.
Requirements
Header: <mutex>
Namespace: std
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ