5,321
edits
(→Memory) |
|||
Line 70: | Line 70: | ||
===Memory=== | ===Memory=== | ||
====Smart Pointers=== | ====Smart Pointers==== | ||
[https://www.geeksforgeeks.org/auto_ptr-unique_ptr-shared_ptr-weak_ptr-2/ Smart Pointers]<br> | [https://www.geeksforgeeks.org/auto_ptr-unique_ptr-shared_ptr-weak_ptr-2/ Smart Pointers]<br> | ||
There are 4 types of smart pointers | There are 4 types of smart pointers | ||
* <code>auto_ptr</code> which is deprecated | * <code>auto_ptr</code> which is [https://stackoverflow.com/questions/3697686/why-is-auto-ptr-being-deprecated deprecated] | ||
* <code>unique_ptr</code> | * <code>unique_ptr</code> | ||
* <code>shared_ptr</code> | * <code>shared_ptr</code> |