Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates > MakeShareable
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include | #include "Templates/SharedPointer.h" |
template<class ObjectType>
SharedPointerInternals::TRawPtrProxy < ObjectType > MakeShareable
(
ObjectType * InObject
)
Remarks
MakeShareable utility function. Wrap object pointers with MakeShareable to allow them to be implicitly converted to shared pointers! This is useful in assignment operations, or when returning a shared pointer from a function.