Solved

Smart Pointer

Posted on 2000-04-29
4
276 Views
Last Modified: 2010-04-02
What is a smart pointer in C++ ?
Give an programme for how it can be used ?
0
Comment
Question by:ajaysoni032800
4 Comments
 
LVL 1

Accepted Solution

by:
jbodom earned 20 total points
ID: 2763212
0
 
LVL 7

Expert Comment

by:KangaRoo
ID: 2763323
A smart pointer in C++ is an object that `behaves' like a pointer (you can dereference it with * and ->), but can also do some smart tricks, like deleting the object it holds when it is no longer needed.
0
 
LVL 1

Expert Comment

by:ntdragon
ID: 2763463
what exectlly you want to know
0
 

Author Comment

by:ajaysoni032800
ID: 2848441
Comment accepted as answer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question