util::delete_array Struct Reference

A helper policy for scoped_array. More...

#include <scoped_resource.hpp>

List of all members.

Public Member Functions

template<typename T>
void operator() (T *&p) const


Detailed Description

A helper policy for scoped_array.

It will call the delete[] operator on a pointer, and assign the pointer to 0

Definition at line 128 of file scoped_resource.hpp.


Member Function Documentation

template<typename T>
void util::delete_array::operator() ( T *&  p  )  const [inline]

Definition at line 130 of file scoped_resource.hpp.


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs