?
Solved

Smart Pointer

Posted on 2000-04-29
4
Medium Priority
?
284 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 80 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

840 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