C++ Smart Pointers

Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=YJGCLjHBq_c



Duration: 48:31
340 views
13


Today we talked about why C-style raw pointers suck. Not to the point you should never use them, but there are some really significant problems such as their type information not containing how many elements it is pointing at, if it owns the memory it is pointing at, and so forth.

Smart Pointers are a way of being able to own memory in something that works something like a raw pointer but solves most of the problems with raw pointers.