std::atomic<T>::store - cppreference.com
From cppreference.com
|
|
(1) | (since C++11) |
|
|
(2) | (since C++11) |
Atomically replaces the current value with desired. Memory is affected according to the value of order.
If order is one of std::memory_order_consume, std::memory_order_acquire and std::memory_order_acq_rel, the behavior is undefined.
|
It is deprecated if |
(since C++20) |
Parameters
| desired | - | the value to store into the atomic variable |
| order | - | memory order constraints to enforce |
Return value
(none)