The C++ language guarantees that destructors run at specific times even if an exception is thrown. You can use this to make sure that other cleanup work gets done. That is what smart pointers do.
...more
View all episodesBy Take Up Code: build your own computer games, apps, and robotics with podcasts and live classes
4.8
111111 ratings
126: Data Types: Smart Pointers Part 1.
The C++ language guarantees that destructors run at specific times even if an exception is thrown. You can use this to make sure that other cleanup work gets done. That is what smart pointers do.