class

TWeakPtr

Non-owning observer; Pin() to use

Module
Arc
Header
#include "Arc/Core/ArcMemory.h"
Namespace
Arcf
Template
template<typename T>

Constructors

SignatureNameDescription
TWeakPtr() = defaultTWeakPtr
TWeakPtr(const TSharedPtr<T>& shared) : m_ptr(shared.m_ptr)TWeakPtr
TWeakPtr(const TSharedRef<T>& shared) : m_ptr(shared.m_ptr)TWeakPtr
TWeakPtr(const TWeakPtr&) = defaultTWeakPtr
TWeakPtr(TWeakPtr&&) noexcept = defaultTWeakPtr

Public functions

ReturnsNameDescription
TWeakPtr&operator=
TWeakPtr&operator=
TWeakPtr&operator=
TWeakPtr&operator=
TSharedPtr<T>Pin
boolIsValid
voidReset

Function details

TWeakPtr

C++
TWeakPtr() = default

TWeakPtr

C++
TWeakPtr(const TSharedPtr<T>& shared) : m_ptr(shared.m_ptr)

TWeakPtr

C++
TWeakPtr(const TSharedRef<T>& shared) : m_ptr(shared.m_ptr)

TWeakPtr

C++
TWeakPtr(const TWeakPtr&) = default

TWeakPtr

C++
TWeakPtr(TWeakPtr&&) noexcept = default

operator=

C++
TWeakPtr& operator=(const TWeakPtr&) = default

operator=

C++
TWeakPtr& operator=(TWeakPtr&&) noexcept = default

operator=

C++
TWeakPtr& operator=(const TSharedPtr<T>& shared)

operator=

C++
TWeakPtr& operator=(const TSharedRef<T>& shared)

Pin

C++
TSharedPtr<T> Pin() const

IsValid

C++
bool IsValid() const

Reset

C++
void Reset()
Generated from Arc/Core/ArcMemory.h via arc.json · Nov 5, 2026Version 1.0.0