Share via


atomic::store Method

Stores a specified value.

void atomic<Ty>::store(
   Ty Value,
   memory_order Order = memory_order_seq_cst
) volatile _NOEXCEPT;
void atomic<Ty>::store(
   Ty Value,
   memory_order Order = memory_order_seq_cst
) _NOEXCEPT;

Parameters

Remarks

This method atomically stores Value in *this, within the memory constraints that are specified by Order.

Requirements

Header: atomic

Namespace: std

See Also

Reference

atomic Structure

<atomic>

atomic::operator= Operator