Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<T*> >> std::atomic<T*>::operator-- Postdecrement Operator

Atomically decrement the value stored in *this using standard pointer arithmetic rules and return the old value.

T* operator--(int) volatile;

Returns:

this->fetch_sub(1,std::memory_order_seq_cst).

Throws:

Nothing.

Header

#include <atomic>

See Also