C++ Smart Pointers: weak_ptr | cyclic reference
Watch the complete playlist on C++ Smart Pointers: https://www.youtube.com/playlist?list=PL1w8k37X_6L_oox8RmtHlxgvVYoXomuYF
Watch the complete playlist on C++ Pointers: https://www.youtube.com/playlist?list=PL1w8k37X_6L_dI9bJXZ2mWhGOWHZtEd7j
weak_ptr does not participate in reference counting.
weak_ptr solves the cyclic reference problem created by shared_ptr.
Watch my courses for Free on Skillshare using these links:
C++11 Move Semantics & rvalue reference: https://skl.sh/2Jpff2o
C++ Smart Pointers: https://skl.sh/2JqIlym
Type casting in C++: https://skl.sh/2G2wh5h
C++ Pointers: https://skl.sh/2LHW6eB
Discrete Maths: https://skl.sh/2G3Xbtw
Reinforcement Learning: https://skl.sh/2XQxEhx
You need to be signed in to your free/premium accounts to watch these courses for free. You can sign in using Google or Facebook login as well.
#weak_ptr #Smart #Pointers