C++ Smart Pointers
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=YJGCLjHBq_c
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.
Other Videos By Bill Kerney
2024-03-06 | C++: BST print, insert, and invariants |
2024-03-04 | Conceptual overview of Binary Search Trees |
2024-03-04 | C++: Templated Stacks and Queues |
2024-03-02 | Queues and Stacks |
2024-03-02 | C++: Debugging Linker Errors |
2024-02-28 | C++: Dynamic Cast |
2024-02-28 | CSCI 1: Fallacies and Midterm I Review |
2024-02-26 | C++ Circular Lists, Sentinel Nodes, Merging Lists |
2024-02-26 | C++: Keywords You Might Not Know |
2024-02-23 | C++ Inheritance |
2024-02-21 | C++ Smart Pointers |
2024-02-14 | C++: Inserting into a Linked List |
2024-02-12 | C++: Debugging Linked Lists using Invariants |
2024-02-09 | Lab Time: Make a Makefile |
2024-02-07 | C++ Linked Lists |
2024-02-05 | C++: Operators and Type Conversion with Constructors |
2024-02-03 | C++ Test Driven Development using Gtest |
2024-02-03 | Managing Computer Science Projects is Hard |
2024-01-31 | Big O Notation |
2024-01-31 | C++ Operators |
2024-01-29 | C++ Timing Code, Benchmarking, UNIX Shell Scripting Automation |