February 2012
Intermediate to advanced
528 pages
17h 47m
English
This is an atomic read-modify-write operation for the memory location comprising *this.
Atomically reads the value from an atomic<T*> instance and replaces it with that value minus the supplied value i using standard pointer arithmetic rules.
Declaration
T* atomic_fetch_sub(volatile atomic<T*>* p, ptrdiff_t i) noexcept; T* atomic_fetch_sub(atomic<T*>* p, ptrdiff_t i) noexcept;
Effects
return p->fetch_sub(i);
Atomically reads the value from an atomic<T*> instance and replaces it with that value minus the supplied value i using standard pointer arithmetic rules.
Declaration
T* atomic_fetch_sub_explicit( volatile atomic<T*>* p, ptrdiff_t ...
Read now
Unlock full access