Atomically load the current value of the std::atomic instance.
T* load( memory_order order = memory_order_seq_cst) const volatile;
- Preconditions:
The supplied
ordermust be one ofstd::memory_order_relaxed,std::memory_order_acquire,std::memory_order_consumeorstd::memory_order_seq_cst- Effects:
Atomically loads the value stored in
*this.- Returns:
The value stored in
*thisat the point of the call.- Throws:
Nothing.
- Note:
This is an atomic load operation for the memory location comprising
*this.
#include <atomic>