Share via


atomic::operator-- Operator

Decrements 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;

Return Value

The first two operators return the decremented value; the last two operators return the value before the decrement. The operators use the memory_order_seq_cstmemory_order.

Requirements

Header: atomic

Namespace: std

See Also

Reference

atomic Structure

<atomic>

atomic_fetch_sub_explicit Function