Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<integral-type> >> std::atomic<integral-type>::operator-- Predecrement Operator

Atomically decrement the value stored in *this and return the new value.

integral-type operator--() volatile;

Returns:

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

Throws:

Nothing.

Header

#include <atomic>

See Also