![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NoDestroy.h>
Public Types | |
| using | ElementType = T |
Public Member Functions | |
| template<typename... ArgTypes> | |
| consteval | TNoDestroy (ENoDestroyConstEval, ArgTypes &&... InArgs) |
| template<typename... ArgTypes> | |
| constexpr | TNoDestroy (ArgTypes &&... InArgs) |
| UE_NONCOPYABLE (TNoDestroy) | |
| constexpr | ~TNoDestroy () |
| constexpr ElementType * | operator& () |
| constexpr const ElementType * | operator& () const |
| constexpr ElementType & | operator* () |
| constexpr const ElementType & | operator* () const |
| ElementType * | operator-> () |
| const ElementType * | operator-> () const |
Type to wrap a global variable and prevent its destructor being called. The destructor of this type cannot be trivial, but it is empty and compilers should not register an atexit call for the object.
| using TNoDestroy< T >::ElementType = T |
|
inlineexplicit |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
| TNoDestroy< T >::UE_NONCOPYABLE | ( | TNoDestroy< T > | ) |