CS::Utility::ScopedDelete< T > Class Template Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
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:

- csutil/scopeddelete.h