util::delete_item Struct Reference

A helper policy for scoped_ptr. 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_ptr.

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

Definition at line 120 of file scoped_resource.hpp.


Member Function Documentation

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

Definition at line 122 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