Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedPtr
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h | ||
TSharedPtr & operator=
(
TSharedPtr const& InSharedPtr |
Assignment operator replaces this shared pointer with the specified shared pointer. | Templates/SharedPointer.h | |
TSharedPtr & operator=
(
TSharedPtr&& InSharedPtr |
Templates/SharedPointer.h | ||
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxy< OtherType > const& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h | |
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType > const& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h | |
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType >&& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h |
operator=(SharedPointerInternals::FNullTag *)
Description
Assignment to a nullptr pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedPtr & operator=
(
SharedPointerInternals::FNullTag *
)
operator=(TSharedPtr const &)
Description
Assignment operator replaces this shared pointer with the specified shared pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedPtr & operator=
(
TSharedPtr const & InSharedPtr
)
Parameters
| Name | Remarks |
|---|---|
| InSharedPtr | Shared pointer to replace with |
operator=(TSharedPtr &&)
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedPtr & operator=
(
TSharedPtr && InSharedPtr
)
operator=(SharedPointerInternals::TRawPtrProxy< OtherType > const &)
Description
Assignment operator replaces this shared pointer with the specified shared pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<typename OtherType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxy < OtherType > const & InRawPtrProxy
)
Parameters
| Name | Remarks |
|---|---|
| InRawPtrProxy | Proxy object used to assign the object (see MakeShareable helper function) |
operator=(SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType > const &)
Description
Assignment operator replaces this shared pointer with the specified shared pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<typename OtherType, typename DeleterType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter < OtherType, DeleterType > const & InRawPtrProxy
)
Parameters
| Name | Remarks |
|---|---|
| InRawPtrProxy | Proxy object used to assign the object (see MakeShareable helper function) |
operator=(SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType > &&)
Description
Assignment operator replaces this shared pointer with the specified shared pointer. The object currently referenced by this shared pointer will no longer be referenced and will be deleted if there are no other referencers.
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
template<typename OtherType, typename DeleterType, std::enable_if_t<(std::is_convertible_v< OtherType *, ObjectType * >), int >>
TSharedPtr & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter < OtherType, DeleterType > && InRawPtrProxy
)
Parameters
| Name | Remarks |
|---|---|
| InRawPtrProxy | Proxy object used to assign the object (see MakeShareable helper function) |