smart pointers
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy
-
Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy
They are classes that wrap a pointer and delete it when the object goes out of scope. Typically, you pass in the pointer in the constructor of a smart pointer, and the destructor will delete it. There are also some smart pointers that do reference counting and will only delete the pointer once the count has reached 0.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac
-
Hi all Can anyone tell me definition of Smartpointers in simple by G. Palani samy