delete_object Struct Reference

Functor to delete objects pointed by a container of pointers. More...

#include <cont_ptr_utils.h>

List of all members.

Public Member Functions

template<typename _Pointer>
void operator() (_Pointer __ptr) const


Detailed Description

Functor to delete objects pointed by a container of pointers.

A typical usage might be like:

 list<Object*> l;
 ...
 for_each(l.begin(), l.end(), delete_object());


Member Function Documentation

template<typename _Pointer>
void delete_object::operator() ( _Pointer  __ptr  )  const [inline]


The documentation for this struct was generated from the following file:
Generated on Mon Dec 31 15:07:33 2007 for Nvwa by  doxygen 1.5.1