Где искать: по сайтам Запорожской области, статьи, видео ролики
пример: покупка автомобиля в Запорожье
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
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://bit.ly/Cpp_Pointers
Learn Exception handling - https://youtu.be/kjEhqgmEiWY
Tag me on you Instagram stories:
Instagram ???? - https://www.instagram.com/truecodebeauty/
Twitter ????- https://twitter.com/TrueCodeBeauty