Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TWeakPtr
Overloads
Name
Remarks
Include Path
Unreal Specifiers
NOTE: FNullTag parameter is an Unreal extension to standard shared_ptr behavior.
Templates/SharedPointer.h
NOTE: The following is an Unreal extension to standard shared_ptr behavior.
Templates/SharedPointer.h
Constructs a weak pointer from a shared pointer
Templates/SharedPointer.h
Constructs a weak pointer from a weak pointer of another type.
Templates/SharedPointer.h
Templates/SharedPointer.h
Templates/SharedPointer.h
Templates/SharedPointer.h
Templates/SharedPointer.h
Special constructor used internally to statically cast one weak pointer type to another.
Templates/SharedPointer.h
Special constructor used internally to cast a 'const' weak pointer a 'mutable' pointer.
Templates/SharedPointer.h
TWeakPtr(SharedPointerInternals::FNullTag *)
Description
Constructs an empty TWeakPtr
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr
(
SharedPointerInternals::FNullTag *
)
Copy full snippet
TWeakPtr(TSharedRef< OtherType, Mode > const &)
Description
Constructs a weak pointer from a shared reference
Name
TWeakPtr
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
(
TSharedRef < OtherType, Mode > const & InSharedRef
)
Copy full snippet
Parameters
Name
Remarks
InSharedRef
The shared reference to create a weak pointer from
TWeakPtr(TSharedPtr< OtherType, Mode > const &)
Description
Constructs a weak pointer from a shared pointer
Name
TWeakPtr
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
(
TSharedPtr < OtherType, Mode > const & InSharedPtr
)
Copy full snippet
Parameters
Name
Remarks
InSharedPtr
The shared pointer to create a weak pointer from
TWeakPtr(TWeakPtr< OtherType, Mode > const &)
Description
Constructs a weak pointer from a weak pointer of another type. This constructor is intended to allow derived-to-base conversions.
Name
TWeakPtr
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
(
TWeakPtr < OtherType, Mode > const & InWeakPtr
)
Copy full snippet
Parameters
Name
Remarks
InWeakPtr
The weak pointer to create a weak pointer from
TWeakPtr(TWeakPtr< OtherType, Mode > &&)
Name
TWeakPtr
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
(
TWeakPtr < OtherType, Mode > && InWeakPtr
)
Copy full snippet
TWeakPtr(TWeakPtr const &)
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr
(
TWeakPtr const & InWeakPtr
)
Copy full snippet
TWeakPtr(TWeakPtr &&)
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr
(
TWeakPtr && InWeakPtr
)
Copy full snippet
TWeakPtr(FIntrusiveUnsetOptionalState)
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
TWeakPtr
(
FIntrusiveUnsetOptionalState
)
Copy full snippet
TWeakPtr(TWeakPtr< OtherType, Mode > const &, SharedPointerInternals::FStaticCastTag)
Description
Special constructor used internally to statically cast one weak pointer type to another. You should never call this constructor directly. Instead, use the StaticCastWeakPtr() function. This constructor creates a weak pointer as a weak reference to an existing weak pointer after statically casting that pointer's object. This constructor is needed for static casts.
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
template<typename OtherType>
TWeakPtr
(
TWeakPtr < OtherType, Mode > const & InWeakPtr,
SharedPointerInternals::FStaticCastTag
)
Copy full snippet
Parameters
Name
Remarks
InWeakPtr
The weak pointer whose object we should create an additional reference to
TWeakPtr(TWeakPtr< OtherType, Mode > const &, SharedPointerInternals::FConstCastTag)
Description
Special constructor used internally to cast a 'const' weak pointer a 'mutable' pointer. You should never call this constructor directly. Instead, use the ConstCastWeakPtr() function. This constructor creates a weak pointer as a weak reference to an existing weak pointer after const casting that pointer's object. This constructor is needed for const casts.
Name
TWeakPtr
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h
Include Path
#include "Templates/SharedPointer.h"
template<typename OtherType>
TWeakPtr
(
TWeakPtr < OtherType, Mode > const & InWeakPtr,
SharedPointerInternals::FConstCastTag
)
Copy full snippet
Parameters
Name
Remarks
InWeakPtr
The weak pointer whose object we should create an additional reference to