std::atomic_flag::operator=
来自cppreference.com
< cpp | atomic | atomic flag
并发支持库
|
|
std::atomic_flag
成员函数 | ||||
atomic_flag::operator= | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) |
在标头 <atomic> 定义 | ||
atomic_flag& operator=( const atomic_flag& ) = delete; | (1) | (C++11 起) |
atomic_flag& operator=( const atomic_flag& ) volatile = delete; | (2) | (C++11 起) |
std::atomic_flag 不可赋值,其赋值运算符被弃置。