|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
atomic_flag::test (C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) |
bool test(std::memory_order order= std::memory_order_seq_cst)constvolatilenoexcept; | (1) | (since C++20) |
bool test(std::memory_order order= std::memory_order_seq_cst)constnoexcept; | (2) | (since C++20) |
Atomically reads the value of the*this and returns the value.
Iforder is one ofstd::memory_order_release andstd::memory_order_acq_rel, the behavior is undefined.
Contents |
| order | - | the memory synchronization ordering |
The value atomically read.
| This section is incomplete Reason: no example |
(C++20)(C++20) | atomically returns the value of the flag (function)[edit] |