Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- TPtrVariantBase
- TWeakPtrVariant
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/PointerVariants.h |
| Include | #include "Templates/PointerVariants.h" |
Syntax
template<typename BaseType>
struct TWeakPtrVariant : public UE::Core::Private::TPtrVariantBase< BaseType, false >
Remarks
[TWeakPtrVariant](API\Runtime\Core\Templates\TWeakPtrVariant)_ and TStrongPtrVariant are particularly useful for "interfaces" in areas where UObjects and non-UObjects exist to hold onto a "smart" pointer to the Interface, rather than needing to keep track of the implementing class to check validity and manually cast [TWeakPtrVariant](API\Runtime\Core\Templates\TWeakPtrVariant)_ will be either a TWeakObjectPtr or `TWeakPtr_
Functions
| Type | Name | Description | |
|---|---|---|---|
| TStrongPtrVariant< BaseType > | Pin () |
Typedefs
| Name | Description |
|---|---|
| Super |