std::atomic_flag::clear
| Defined in header <atomic> |  |  | 
|---|---|---|
| void clear( std::memory_order order = std::memory_order_seq_cst ) volatile; | (1) | (since C++11) | 
| void clear( std::memory_order order = std::memory_order_seq_cst ); | (2) | (since C++11) | 
原子地更改std::atomic_flag清除%28false29%。
参数
| order | - | the memory synchronization ordering for this operation (cannot be std::memory_order_consume, std::memory_order_acquire, or std::memory_order_acq_rel) | 
|---|
例外
noexcept规格:
noexcept
另见
| test_and_set | atomically sets the flag to true and obtains its previous value (public member function) | 
|---|---|
| atomic_flag_clearatomic_flag_clear_explicit (C++11)(C++11) | atomically sets the value of the flag to false (function) | 
| memory_order (C++11) | defines memory ordering constraints for the given atomic operation (typedef) | 
 © cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

