class
TWeakPtr
Non-owning observer; Pin() to use
- Module
- Arc
- Header
#include "Arc/Core/ArcMemory.h"- Namespace
Arcf- Template
template<typename T>
Constructors
| Signature | Name | Description |
|---|---|---|
TWeakPtr() = default | TWeakPtr | |
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&) = default | TWeakPtr | |
TWeakPtr(TWeakPtr&&) noexcept = default | TWeakPtr |
Public functions
| Returns | Name | Description |
|---|---|---|
TWeakPtr& | operator= | |
TWeakPtr& | operator= | |
TWeakPtr& | operator= | |
TWeakPtr& | operator= | |
TSharedPtr<T> | Pin | |
bool | IsValid | |
void | Reset |
Function details
TWeakPtr
C++
TWeakPtr() = defaultTWeakPtr
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&) = defaultTWeakPtr
C++
TWeakPtr(TWeakPtr&&) noexcept = defaultoperator=
C++
TWeakPtr& operator=(const TWeakPtr&) = defaultoperator=
C++
TWeakPtr& operator=(TWeakPtr&&) noexcept = defaultoperator=
C++
TWeakPtr& operator=(const TSharedPtr<T>& shared)operator=
C++
TWeakPtr& operator=(const TSharedRef<T>& shared)Pin
C++
TSharedPtr<T> Pin() constIsValid
C++
bool IsValid() constReset
C++
void Reset()Generated from Arc/Core/ArcMemory.h via arc.json · Nov 5, 2026Version 1.0.0