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

 

Increments the stored value. Used only by integral and pointer specializations.

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

The first two operators return the incremented value; the last two operators return the value before the increment. The operators use the memory_order_seq_cst memory_order.

Requirements

Header: atomic

Namespace: std

Show: