Navigation
API > API/Runtime > API/Runtime/Core
Basic storage and implementation - only allows getting and setting via platform atomics.
| Name | TAtomicBase_Basic |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Atomic.h |
| Include Path | #include "Templates/Atomic.h" |
Syntax
template<typename T>
struct TAtomicBase_Basic
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Templates/Atomic.h | |||
constexpr TAtomicBase_Basic
(
T Value |
Templates/Atomic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CompareExchange
(
T& Expected, |
Compares the element with an expected value and, only if comparison succeeds, assigns the element to a new value. | Templates/Atomic.h | |
T Exchange
(
T Value |
Sets the element to a specific value, returning a copy of the previous value. | Templates/Atomic.h | |
T Load
(
EMemoryOrder Order |
Gets a copy of the current value of the element. | Templates/Atomic.h | |
void Store
(
T Value, |
Sets the element to a specific value. | Templates/Atomic.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static std::memory_order ToStd
(
EMemoryOrder Order |
Templates/Atomic.h |