std::atomic_flag::operator=
来自cppreference.com
并发支持库
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 在标头 <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 不可赋值,其赋值运算符被弃置。