Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are smart pointer? Whats its use?

Answer Posted / amit wagh

Smart Pointer is basically a class implementation, which
wraps around a pointer and provided functionalities like
ownership of allocated memory proper cleanup.
Smart pointers are used when dealing with memory allocated
on heap.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is "using namespace std;" considered bad practice?

1037


Where the memory to the static variables is allocated?

1002


Why is standard template library used?

989


What is problem with overriding functions?

1005


Describe the advantage of an external iterator.

981


What is pointer to member?

1013


List different attributes in C++?

1016


Where Malloc(), Calloc(), and realloc() does get memory?

996


Does c++ vector allocate memory?

942


What is the use of main function in c++?

927


Why struct is used in c++?

1067


What is helper in c++?

1036


Differentiate between the message and method in c++?

1007


What is const in c++?

1063


What does the nocreate and noreplace flag ensure when they are used for opening a file?

1059