Very famous interview question in C++: Question: What are SMART - TopicsExpress



          

Very famous interview question in C++: Question: What are SMART POINTERS? Answer: A smart pointer is an object that functions like a normal pointer. A smart pointer class has dereference operators (* and -> operators) and address (&) operators overloaded that provides them look-and-feel of using a normal pointer. Smart pointers are safer to use and often provide more functionality than plain pointers. For example, smart pointers often implement reference counting that they can release the resource once there is no object referring to it. The std::auto_ptr (defined in ) is a simple smart pointer provided in the standard library.
Posted on: Fri, 21 Nov 2014 09:30:00 +0000

Trending Topics



Recently Viewed Topics




© 2015