std::atomic_flag::clear

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

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2138C++11order could be std::memory_order_consumethe behavior is undefined in this case

# See also