Navigation
API > API/Runtime > API/Runtime/Core
Arithmetic atomic implementation - used by both pointers and integral types in addition to getting and setting.
| Name | TAtomicBase_Arithmetic |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Atomic.h |
| Include Path | #include "Templates/Atomic.h" |
Syntax
template<typename T, typename DiffType>
struct TAtomicBase_Arithmetic : public TAtomicBase_Basic< T >
Inheritance Hierarchy
- TAtomicBase_Basic → TAtomicBase_Arithmetic
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Templates/Atomic.h | |||
constexpr TAtomicBase_Arithmetic
(
T Value |
Templates/Atomic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T AddExchange
(
DiffType Value |
Adds Value to Element and returns a copy of the previous value of the element. | Templates/Atomic.h | |
T DecrementExchange() |
Decrements Element and returns a copy of the previous value of the element. | Templates/Atomic.h | |
T IncrementExchange() |
Increments Element and returns a copy of the previous value of the element. | Templates/Atomic.h | |
T SubExchange
(
DiffType Value |
Subtracts Value from Element and returns a copy of the previous value of the element. | Templates/Atomic.h |
Protected
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T operator--() |
Performs Element, returning a copy of the new value of the element. | Templates/Atomic.h | |
T operator--
(
int |
Performs Element, returning a copy of the previous value of the element. | Templates/Atomic.h | |
T operator++() |
Performs ++Element, returning a copy of the new value of the element. | Templates/Atomic.h | |
T operator++
(
int |
Performs Element++, returning a copy of the previous value of the element. | Templates/Atomic.h | |
T operator+=
(
DiffType Value |
Performs Element += Value, returning a copy of the new value of the element. | Templates/Atomic.h | |
T operator-=
(
DiffType Value |
Performs Element -= Value, returning a copy of the new value of the element. | Templates/Atomic.h |