A smart pointer to an object already owned by a unique_ptr. It doesn't own the object but it self zeroes when the object is deleted so that it can never dangle.
c-plus-plus safety memory-management smart-pointer unique-ptr dangling-pointer-detection observer-ptr weak-pointers dangling-pointers smart-pointers-library pointer-safety ptr-to-unique safe-cplusplus secondary-pointer non-owning-smart-pointer
-
Updated
Dec 16, 2024 - C++