Загрузка страницы

SMART POINTERS in C++ (for beginners in 20 minutes)

A smart pointer is a container/wrapper for a raw pointer. In modern C++ smart pointers are defined in the std namespace in the memory header file.
One big advantage of smart pointers is that they are responsible for deleting the memory that they use, which means that they automatically deallocate the memory when they go out of scope.
There are three types of smart pointers in C++: unique pointer, shared pointer and weak pointer (std::unique_ptr, std::shared_ptr, std::weak_ptr)

🎁 Download PVS-Studio for free with #code_beauty promo code: https://bit.ly/PVS_Studio
▶️ PVS-Studio YouTube channel – https://www.youtube.com/channel/UCgOtSopdNjACcxXQpdGQEnA/
🇫 PVS-Studio Facebook group - https://www.facebook.com/StaticCodeAnalyzer

☕ I recently created the option for you to buy me a coffee/cookie, so if you enjoy my content and find it useful consider that small gesture of gratitude for all the hard work that I put into these videos. That would mean a lot to me! ❤️❤️❤️
https://bit.ly/CodeBeauty_BuyMeACoffee
Of course, don't feel pressured if you can't, I will continue posting free educational content for you nevertheless. 😇

Contents:
00:00 - Intro
02:11 - What are smart pointers in C++
03:03 - Unique pointer in C++
05:34 - Sharing vs moving a unique pointer in C++
08:08 - Unique pointer automatic memory deallocation
13:06 - Shared pointers in C++
16:33 - Shared pointer automatic memory deallocation
20:06 - Weak pointer vs shared pointer in C++
How to install and use PVS-Studio - https://youtu.be/AeyTSLGIX1M
Object Oriented Programming - https://bit.ly/Cpp_OOP_Playlist
C++ Pointers - https://youtu.be/kiUGf_Z08RQ
Learn Exception handling - https://youtu.be/kjEhqgmEiWY
Tag me on you Instagram stories:
Instagram 📸 - https://www.instagram.com/TrueCodeBeauty
Twitter 🐦- https://twitter.com/TrueCodeBeauty

Видео SMART POINTERS in C++ (for beginners in 20 minutes) канала CodeBeauty
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
9 июня 2021 г. 22:00:13
00:25:57
Яндекс.Метрика