Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: Smart Pointers. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

Smart Pointers
by Neoteric at 5:31 pm EDT, Aug 9, 2004

] Smart pointers are objects which store pointers to
] dynamically allocated (heap) objects. They behave much
] like built-in C pointers except that they automatically
] delete the object pointed to at the appropriate time.
] Smart pointers are particularly useful in the face of
] exceptions as they ensure proper destruction of
] dynamically allocated objects. They can also be used to
] keep track of dynamically allocated objects shared by
] multiple owners.
]
] Conceptually, smart pointers are seen as owning the
] object pointed to, and thus responsible for deletion of
] the object when it is no longer needed.


 
 
Powered By Industrial Memetics