Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include |
#include "Templates/SharedPointer.h" |
template<typename InObjectType, ESPMode InMode, typename... InArgTypes>
TSharedRef< InObjectType, InMode > MakeShared
(
InArgTypes &&... Args
)
MakeShared utility function. Allocates a new ObjectType and reference controller in a single memory block. Equivalent to std::make_shared.
If the constructor is private/protected you will need to friend the intrusive reference controller in your class. e.g. template