Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Learn Modern C++: Smart Pointer unique_ptr
Play lesson

ROS2 Tutorials - Learn Modern C++: Smart Pointer unique_ptr

5.0 (0)
9 learners

What you'll learn

Content missing – cannot generate learning outcomes
Content missing – cannot generate learning outcomes
Content missing – cannot generate learning outcomes
Content missing – cannot generate learning outcomes

This course includes

  • 47.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

#cpp #cppprogramminglanguage #programming #robotics It takes a significant amount of time and energy to create these free video tutorials. You can support my efforts in this way: - Buy me a Coffee: https://www.buymeacoffee.com/AleksandarHaber - PayPal: https://www.paypal.me/AleksandarHaber - Patreon: https://www.patreon.com/user?u=32080176&fan_landing=true - You Can also press the Thanks YouTube Dollar button - In this lecture on modern C++, we briefly explain the smart pointer called unique_prt and we explain how to use it in C++ code. To avoid problems with memory leaks and similar problems, the modern C++ programming language strongly discourages the use of raw (standard) pointers except for some cases. Instead, programs and programmers are encouraged to use smart pointers. - A smart pointer is a class template that is declared on the stack and initialized by using a pointer that points to the memory on heap. - The smart pointer will automatically delete the memory that the raw pointer points to. That is, we do not need to use the delete operator! - Inside of the destructor (smart pointer is a class template!) of the smart pointer there is a call to delete that releases the memory!

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere