A weak pointer.
Weak pointers point to memory owned by shared_ptr or unique_ptr. They do not own the memory allocation and said allocation may become null at any point.
Make sure to check the validity of the underlying value using isValid!
Constructs a weak pointer from an internal refcount object.
Copy Constructor.
Destructor.
Whether the smart pointer value is still valid.
The value stored within the smart pointer.
nulib.memory.shared_ptr.shared_ptr nulib.memory.unique_ptr.unique_ptr
See Implementation
A weak pointer.
Weak pointers point to memory owned by shared_ptr or unique_ptr. They do not own the memory allocation and said allocation may become null at any point.
Make sure to check the validity of the underlying value using isValid!