Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
Inheritance Hierarchy
- DeleterType
- TDeleterHolder
- TReferenceControllerWithDeleter
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
| Include | #include "Templates/SharedPointerInternals.h" |
Syntax
template<typename DeleterType, bool bIsZeroSize>
struct TDeleterHolder : private DeleterType
Remarks
A helper class that efficiently stores a custom deleter and is intended to be derived from. If the custom deleter is an empty class, TDeleterHolder derives from it exploiting empty base optimisation (https://en.cppreference.com/w/cpp/language/ebo). Otherwise it stores the custom deleter as a member to allow a function pointer to be used as a custom deleter (a function pointer can't be a base class)
Specializations
TDeleterHolder< DeleterType, false >
Constructors
| Type | Name | Description | |
|---|---|---|---|
TDeleterHolder
(
DeleterType&& Arg |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | InvokeDeleter
(
ObjectType* Object |