Dive into C++11 (#4) — Smart pointers

Hello once more isocpp users, I’m Vittorio Romeo, a computer science student, hobbyist game developer and C++ enthusiast.

I’ve uploaded the fourth episode of “Dive into C++11” on my YouTube channel.

After looking at C and C++'s memory and lifetime management in part 3, we'll take a brief look at C++11 smart pointers. We will learn what they are, what problem they solve, their advantages and their uses.

 

 


The intended audience for this tutorial/screencast are people who have some experience with C++ in general, and who watched the previous episodes. This episode may be very interesting for those with experience with C++ who want to learn more about variable lifetime and memory management.

I greatly appreciate comments and criticism, and ideas for future videos/tutorials.

Feel free to fork/analyze the source code at: https://github.com/SuperV1234/Tutorials

You can find the previous episodes here:

Episode 1
Episode 2
Episode 3
Playlist

Thanks for watching!

Add a Comment

Comments are closed.

Comments (3)

0 0

NoSenseEtAl said on Jan 8, 2014 10:03 AM:

std::string* = my_eyes_bleeding raspberry
rest of it is nice
2 0

Ivan Gusev said on Jan 10, 2014 03:24 AM:

Hi. Thank you for the video. Everything is nice, but I have one comment regarding passing unique_ptr by const ref:
According to Herb Sutter it's not a good idea as we already know that lifetime of passed object is managed in the scope, which called our function. So we don't need to care about it.
http://herbsutter.com/2013/06/05/gotw-91-solution-smart-pointer-parameters/
1 0

Vittorio Romeo said on Jan 10, 2014 06:50 AM:

Thanks for the feedback! @Ivan: Yes, Herb Sutter is right - I added an annotation in the video after uploading it to suggest viewers to read the same article that you linked smile