TSharedRef

Overload list

Windows
MacOS
Linux
Name Description

Public function

TSharedRef()

Constructs default shared reference that owns the default object for specified type.

Public function

TSharedRef

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

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

Public function

TSharedRef

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

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

Public function

TSharedRef

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

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

Private function

TSharedRef

(
    ObjectType* InObject,
    SharedPointerInternals::FReferenceC...
)

Public function

TSharedRef

(
    OtherType* InObject
)

NOTE: TSharedRef has no default constructor as it does not support empty references.

Public function

TSharedRef

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

Public function

TSharedRef

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

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

Public function

TSharedRef

(
    TSharedRef const& InSharedRef
)

Public function

TSharedRef

(
    TSharedRef&& InSharedRef
)

Private function

TSharedRef

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

Converts a shared pointer to a shared reference.

Private function

TSharedRef

(
    TSharedPtr< OtherType, Mode >&& In...
)

Public function

TSharedRef

(
    OtherType* InObject,
    DeleterType&& InDeleter
)

Constructs a shared reference that owns the specified object. Must not be nullptr.

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