Share via


atomic::load Method

Retrieves the stored value in *this, within the specified memory constraints.

Ty atomic::load(
   memory_order Order = memory_order_seq_cst
) const volatile _NOEXCEPT;
Ty atomic::load(
   memory_order Order = memory_order_seq_cst
) const _NOEXCEPT;

Parameters

  • Order
    A memory_order. Order must not be memory_order_release or memory_order_acq_rel.

Return Value

The retrieved value that is stored in *this.

Requirements

Header: atomic

Namespace: std

See Also

Reference

<atomic>

atomic Structure

atomic_load_explicit Function