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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss