CrystalSpace

Public API Reference

CS::Utility::ScopedDelete< T > Class Template Reference

Helper class to delete a pointer when exiting a scope. More...

#include <csutil/scopeddelete.h>

Inheritance diagram for CS::Utility::ScopedDelete< T >:

List of all members.

Public Member Functions

 ScopedDelete (T *ptr)
 Construct from given pointer.

Detailed Description

template<class T>
class CS::Utility::ScopedDelete< T >

Helper class to delete a pointer when exiting a scope.

T is the type pointed to.

Definition at line 37 of file scopeddelete.h.


Constructor & Destructor Documentation

template<class T >
CS::Utility::ScopedDelete< T >::ScopedDelete ( T *  ptr  )  [inline]

Construct from given pointer.

Definition at line 41 of file scopeddelete.h.


The documentation for this class was generated from the following file:

Generated for Crystal Space 2.0 by doxygen 1.6.1