Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<T*> >> std::atomic<T*>::operator++ Preincrement Operator

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

T* operator++() volatile;

Returns:

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

Throws:

Nothing.

Header

#include <atomic>

See Also