| TDestroyer
|
Module |
|
Header |
/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/ScopedPtr.h |
Include |
#include "pma/ScopedPtr.h" |
template<class T, class TDestroyer>
class ScopedPtr : private TDestroyer
Takes ownership over the given pointer and handles it's lifetime. @note As ScopedPtr inherits the specified destroyer type, stateless lifetime managers are zero-cost, but it's also possible to use stateful lifetime managers (such as lambdas with captures and what-not). For stateful lifetime managers, a dedicated constructor exists that receives the destroyer instance and initializes the inherited destroyer type with it.
Name | Description | |
---|---|---|
|
~ScopedPtr() |
Name | Description | ||
---|---|---|---|
|
operator bool() |
||
|
std::enable_... |
operator*() |
|
|
std::enable_... |
operator[] ( |
|
|
operator= ( |
||
|
operator= ( |
||
|
operator= ( |
||
|
operator= ( |
||
|
operator->() |
Name |
Description |
---|---|
destroyer_type |
|
element_type |
|
pointer |