TSharedPtr

Overload list

Windows
MacOS
Linux
Name Description

Public function

TSharedPtr

NOTE: FNullTag parameter is an Unreal extension to standard shared_ptr behavior.

Public function

TSharedPtr

(
    OtherType * InObject,
    DeleterType&& InDeleter
)

Constructs a shared pointer that owns the specified object.

Public function

TSharedPtr

(
    TSharedPtr < OtherType , Mode > const...,
    SharedPointerInternals::FStaticCast ...
)

Special constructor used internally to statically cast one shared pointer type to another.

Public function

TSharedPtr

(
    TSharedPtr < OtherType , Mode > const...,
    SharedPointerInternals::FConstCastT ...
)

Special constructor used internally to cast a 'const' shared pointer a 'mutable' pointer.

Public function

TSharedPtr

(
    TSharedPtr < OtherType , Mode > const...,
    ObjectType* InObject
)

Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject.

Public function

TSharedPtr

(
    TSharedPtr < OtherType , Mode >&& Ot...,
    ObjectType* InObject
)

Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject.

Public function

TSharedPtr

(
    TSharedRef < OtherType , Mode > const...,
    ObjectType* InObject
)

Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject.

Public function

TSharedPtr

(
    OtherType * InObject
)

Constructs a shared pointer that owns the specified object.

Public function

TSharedPtr

NOTE: The following is an Unreal extension to standard shared_ptr behavior.

Public function

TSharedPtr

(
    TSharedPtr < OtherType , Mode > const...
)

Constructs a shared pointer as a shared reference to an existing shared pointer's object.

Public function

TSharedPtr

(
    TSharedPtr const& InSharedPtr
)

Public function

TSharedPtr

(
    TSharedPtr && InSharedPtr
)

Public function

TSharedPtr

(
    TSharedRef < OtherType , Mode > const...
)

NOTE: The following is an Unreal extension to standard shared_ptr behavior.

Private function

TSharedPtr

(
    TWeakPtr < OtherType , Mode > const&...
)

Constructs a shared pointer from a weak pointer, allowing you to access the object (if it hasn't expired yet.) Remember, if there are no more shared references to the object, the shared pointer will not be valid.

Private function

TSharedPtr

(
    TWeakPtr < OtherType , Mode >&& InWe...
)

Constructs a shared pointer from a weak pointer, allowing you to access the object (if it hasn't expired yet.) Remember, if there are no more shared references to the object, the shared pointer will not be valid.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback