Documentation Home >> Headers >> <atomic> Header >> std::atomic_address >> std::atomic_address::operator-= Compound Assignment Operator

Atomically subtract the supplied value from the value stored in *this and return the new value.

void* operator-=(ptrdiff_t i) volatile;

Returns:

(void*)((char*)this->fetch_sub(i,std::memory_order_seq_cst) - i).

Throws:

Nothing.

Header

#include <atomic>

See Also