Navigation
API > API/Runtime > API/Runtime/Core
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)
| Name | TDeleterHolder |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
| Include Path | #include "Templates/SharedPointerInternals.h" |
Syntax
template<typename DeleterType, bool bIsZeroSize>
struct TDeleterHolder : private DeleterType
Inheritance Hierarchy
- DeleterType → TDeleterHolder
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TDeleterHolder
(
DeleterType&& Arg |
Templates/SharedPointerInternals.h |
Struct Specializations
| Name | Remarks |
|---|---|
| TDeleterHolder< DeleterType, false > |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InvokeDeleter
(
ObjectType* Object |
Templates/SharedPointerInternals.h |