Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- TAtomicBase_Basic
- TAtomicBase_Arithmetic
- TAtomicBase_Integral
- TAtomicBase_Pointer
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/Atomic.h |
| Include | #include "Templates/Atomic.h" |
Syntax
template<typename T>
struct TAtomicBase_Basic
Remarks
Basic storage and implementation - only allows getting and setting via platform atomics.
Variables
| Type | Name | Description | |
|---|---|---|---|
| volatile T | Element |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr | TAtomicBase_Basic
(
T Value |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CompareExchange
(
T& Expected, |
Compares the element with an expected value and, only if comparison succeeds, assigns the element to a new value. | |
| T | Exchange
(
T Value |
Sets the element to a specific value, returning a copy of the previous value. | |
| T | Load
(
EMemoryOrder Order |
Gets a copy of the current value of the element. | |
| void | Store
(
T Value, |
Sets the element to a specific value. |