Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<T*> >> std::atomic<T*>::operator+= Compound Assignment Operator

Atomically add the supplied value to the value stored in *this using standard pointer arithmetic rules and return the new value.

T* operator+=(ptrdiff_t i) volatile;

Returns:

this->fetch_add(i,std::memory_order_seq_cst) + i.

Throws:

Nothing.

Header

#include <atomic>

See Also