DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated. 更多...
#include <Atomic.h>
继承自 UE4Atomic_Private::TAtomicBaseType_T< T > .
Public 成员函数 | |
| FORCEINLINE | operator T () const |
| Gets a copy of the current value of the element. 更多... | |
| FORCEINLINE T | operator= (T Value) |
| Sets the element to a specific value, returning a copy of the value. 更多... | |
| FORCEINLINE | TAtomic ()=default |
| Default initializes the element type. 更多... | |
| constexpr | TAtomic (T Arg) |
| Initializes the element type with the given argument types. 更多... | |
DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated.
Use std::atomic<T> for new code
Atomic object wrapper class which wraps an element of T. This allows the following benefits:
Default initializes the element type.
NOTE: This will leave the value uninitialized if it has no constructor.
Initializes the element type with the given argument types.
| Arg | The value to initialize the element counter to |
|
inline |
Gets a copy of the current value of the element.
|
inline |
Sets the element to a specific value, returning a copy of the value.
| Value | The value to set the element to. |