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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Function Pointers for beginners! How and when to use Function Pointers?C++ POINTERS (2020) - What is a void pointer? (for beginners) PROGRAMMING TUTORIALSMART POINTERS in C++ (std::unique_ptr, std::shared_ptr, std::weak_ptr)C++ POINTERS (2020) - How to use pointers and arrays (for beginners) PROGRAMMING TUTORIALWhat is "using namespace std" and why is it considered a BAD PRACTICE? C++ Programming QuestionsC++ Structures for beginners (explained in 30 minutes) + Test your programming knowledge!CppCon 2019: Arthur O'Dwyer “Back to Basics: Smart Pointers”CppCon 2019: Matthew Fleming “The Smart Pointers I Wish I Had”C++ POINTERS FULL COURSE Beginner to Advanced (Learn C++ Pointers in 2,5 hours)C++ OOP (2020) - What are constructors and class methods? How to use them?What is system("pause") and why is it considered a BAD PRACTICE? C++ Programming Common QuestionsAbstraction explained with real-life examples and code! - C++ OOP CourseException handling in C++ (How to handle errors in your program?)What is STACK data structure in C++? What is LIFO? STL Stack explained in 14 mins! DATA STRUCTURESC++ FULL COURSE For Beginners (Learn C++ in 10 hours)Your first C++ GUI Game (step by step) Build Game GUI apps in C++Static and Dynamic binding in C++ with examples (Early and Late binding)Software Engineer interview - How I got tricked?! StorytimeCopying and Copy Constructors in C++