Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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;

Value

An integral or pointer value.

A Ty object that contains the result of the addition.

This operator uses the memory_order_seq_cst memory_order.

Requirements

Header: atomic

Namespace: std

Show:
© 2016 Microsoft