std::atomic_flag::test

Atomically reads the value of the *this and returns the value.

# Declarations

bool test( std::memory_order order =
std::memory_order_seq_cst ) const volatile noexcept;

(since C++20)

bool test( std::memory_order order =
std::memory_order_seq_cst ) const noexcept;

(since C++20)

# Parameters

# Return value

The value atomically read.

# Example

This section is incompleteReason: no example

# See also