Weak Pointers in C++ (std::weak_ptr)
51 هزار بار بازدید -
3 ماه پیش
-
To try everything Brilliant has
To try everything Brilliant has to offer—free—for a full 30 days, visit brilliant.org/TheCherno . You’ll also get 20% off an annual premium subscription.
Patreon ► patreon.com/thecherno
Instagram ► instagram.com/thecherno
Twitter ► twitter.com/thecherno
Discord ► discord.gg/thecherno
Hazel ► hazelengine.com/
🕹️ Play our latest game FREE (made in Hazel!) ► studiocherno.itch.io/dichotomy
🌏 Need web hosting? ► hostinger.com/cherno
📚 CHAPTERS
0:00 - Intro
1:14 - How shared pointers work
5:40 - Raw pointers as weak references
8:38 - Weak pointers
12:49 - Cyclical dependencies need weak pointers
13:50 - Code Review example
16:04 - Conclusion
💰 Links to stuff I use:
⌨ Keyboard ► geni.us/T2J7
🐭 Mouse ► geni.us/BuY7
💻 Monitors ► geni.us/wZFSwSK
This video is sponsored by Bril
3 ماه پیش
در تاریخ 1403/04/09 منتشر شده
است.
51,041
بـار بازدید شده