Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSharedRef
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef & operator=
(
TSharedRef const& InSharedRef |
Assignment operator replaces this shared reference with the specified shared reference. | Templates/SharedPointer.h | |
TSharedRef & operator=
(
TSharedRef&& InSharedRef |
Templates/SharedPointer.h | ||
TSharedRef & operator=
(
SharedPointerInternals::TRawPtrProxy< OtherType > const& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h | |
TSharedRef & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType > const& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h | |
TSharedRef & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter< OtherType, DeleterType >&& InRawPtrProxy |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. | Templates/SharedPointer.h |
operator=(TSharedRef const &)
Description
Assignment operator replaces this shared reference with the specified shared reference. The object currently referenced by this shared reference 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" |
TSharedRef & operator=
(
TSharedRef const & InSharedRef
)
Parameters
| Name | Remarks |
|---|---|
| InSharedRef | Shared reference to replace with |
operator=(TSharedRef &&)
| Name | operator= |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
| Include Path | #include "Templates/SharedPointer.h" |
TSharedRef & operator=
(
TSharedRef && InSharedRef
)
operator=(SharedPointerInternals::TRawPtrProxy< OtherType > const &)
Description
Assignment operator replaces this shared reference with the specified shared reference. The object currently referenced by this shared reference will no longer be referenced and will be deleted if there are no other referencers. Must not be nullptr.
| 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 >>
TSharedRef & 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 reference with the specified shared reference. The object currently referenced by this shared reference will no longer be referenced and will be deleted if there are no other referencers. Must not be nullptr.
| 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 >>
TSharedRef & 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 reference with the specified shared reference. The object currently referenced by this shared reference will no longer be referenced and will be deleted if there are no other referencers. Must not be nullptr.
| 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 >>
TSharedRef & operator=
(
SharedPointerInternals::TRawPtrProxyWithDeleter < OtherType, DeleterType > && InRawPtrProxy
)
Parameters
| Name | Remarks |
|---|---|
| InRawPtrProxy | Proxy object used to assign the object (see MakeShareable helper function) |