std::atomic_flag::clear
Min standard notice:
Header: <atomic>
Atomically changes the state of a std::atomic_flag to clear (false).
# Declarations
void clear( std::memory_order order =
std::memory_order_seq_cst ) volatile noexcept;
(since C++11)
void clear( std::memory_order order =
std::memory_order_seq_cst ) noexcept;
(since C++11)
# Parameters
order: the memory synchronization ordering
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2138 | C++11 | order could be std::memory_order_consume | the behavior is undefined in this case |