Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TWeakPtr
Overloads
Name
Remarks
Include Path
Unreal Specifiers
NOTE: The following is an Unreal extension to standard shared_ptr behavior.
Templates/SharedPointer.h
Assignment operator adds a weak reference to the object referenced by the specified weak pointer
Templates/SharedPointer.h
Templates/SharedPointer.h
Assignment operator adds a weak reference to the object referenced by the specified weak pointer.
Templates/SharedPointer.h
Templates/SharedPointer.h
NOTE: The following is an Unreal extension to standard shared_ptr behavior.
Templates/SharedPointer.h
Assignment operator sets this weak pointer from a shared pointer
Templates/SharedPointer.h
operator=(SharedPointerInternals::FNullTag *)
Description
Assignment to a nullptr pointer. Clears this weak pointer's reference.
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr & operator=
(
SharedPointerInternals::FNullTag *
)
Copy full snippet
operator=(TWeakPtr const &)
Description
Assignment operator adds a weak reference to the object referenced by the specified weak pointer
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr & operator=
(
TWeakPtr const & InWeakPtr
)
Copy full snippet
Parameters
Name
Remarks
InWeakPtr
The weak pointer for the object to assign
operator=(TWeakPtr &&)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr & operator=
(
TWeakPtr && InWeakPtr
)
Copy full snippet
operator=(TWeakPtr< OtherType, Mode > const &)
Description
Assignment operator adds a weak reference to the object referenced by the specified weak pointer. This assignment operator is intended to allow derived-to-base conversions.
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 >>
TWeakPtr & operator=
(
TWeakPtr < OtherType, Mode > const & InWeakPtr
)
Copy full snippet
Parameters
Name
Remarks
InWeakPtr
The weak pointer for the object to assign
operator=(TWeakPtr< OtherType, Mode > &&)
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 >>
TWeakPtr & operator=
(
TWeakPtr < OtherType, Mode > && InWeakPtr
)
Copy full snippet
operator=(TSharedRef< OtherType, Mode > const &)
Description
Assignment operator sets this weak pointer from a shared reference
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 >>
TWeakPtr & operator=
(
TSharedRef < OtherType, Mode > const & InSharedRef
)
Copy full snippet
Parameters
Name
Remarks
InSharedRef
The shared reference used to assign to this weak pointer
operator=(TSharedPtr< OtherType, Mode > const &)
Description
Assignment operator sets this weak pointer from a shared pointer
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 >>
TWeakPtr & operator=
(
TSharedPtr < OtherType, Mode > const & InSharedPtr
)
Copy full snippet
Parameters
Name
Remarks
InSharedPtr
The shared pointer used to assign to this weak pointer