33 Concurrency support library [thread]

33.5 Atomic operations [atomics]

33.5.7 Class template atomic_­ref [atomics.ref.generic]

33.5.7.6 Member operators common to integers and pointers to objects [atomics.ref.memop]

value_type operator++(int) const noexcept;
Effects: Equivalent to: return fetch_­add(1);
value_type operator--(int) const noexcept;
Effects: Equivalent to: return fetch_­sub(1);
value_type operator++() const noexcept;
Effects: Equivalent to: return fetch_­add(1) + 1;
value_type operator--() const noexcept;
Effects: Equivalent to: return fetch_­sub(1) - 1;