Solved

Smart Pointer

Posted on 2000-04-29
4
274 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

803 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