template (integral) (1) | template <class T> T atomic_fetch_add (volatile atomic<T>* obj, T val) noexcept;template <class T> T atomic_fetch_add (atomic<T>* obj, T val) noexcept; |
---|---|
template (pointer) (2) | template <class U> U* atomic_fetch_add (volatile atomic<U*>* obj, ptrdiff_t val) noexcept;template <class U> U* atomic_fetch_add (atomic<U*>* obj, ptrdiff_t val) noexcept; |
overloads (3) | T atomic_fetch_add (volatile A* obj, M val) noexcept;T atomic_fetch_add (A* obj, M val) noexcept; |
U*
)是原子对象包含的值的类型(atomic 的模板参数)。