Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ogs::support::Destroy Struct Reference

A function object that destroys allocated memory. More...

#include <Utility.h>

List of all members.

Public Member Functions

template<typename T> void operator() (const T *t) const
 Destroy allocated memory.


Detailed Description

A Destroy object destroys allocated memory by calling the delete operator on pointers. These objects can be used conveniently with standard containers and algorithms.


Member Function Documentation

template<typename T>
void ogs::support::Destroy::operator() const T *  t  )  const
 

The allocated memory is destroyed by calling the delete operator on a pointer of type T. The type T is specified by the template parameter.

Parameters:
t A pointer to allocated memory of type T.


The documentation for this struct was generated from the following file:
Generated on Sun Apr 20 03:40:55 2003 for Open Gaming System (OGS) by doxygen1.3