Share via


atomic::operator+= Operator

Adds a specified value to the stored value. Used only by integral and pointer specializations.

Ty atomic<Ty>::operator+=(
   Ty Value
) volatile _NOEXCEPT;
Ty atomic<Ty>::operator+=(
   Ty Value
) _NOEXCEPT;

Parameters

  • Value
    An integral or pointer value.

Return Value

A Ty object that contains the result of the addition.

Remarks

This operator uses the memory_order_seq_cstmemory_order.

Requirements

Header: atomic

Namespace: std

See Also

Reference

atomic Structure

<atomic>

atomic_fetch_add_explicit Function