delete_object Struct Reference

#include <cont_ptr_utils.h>


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());

Definition at line 96 of file cont_ptr_utils.h.


Public Member Functions

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

Member Function Documentation

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

Definition at line 99 of file cont_ptr_utils.h.

00100     {
00101         delete __ptr;
00102     }


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

Generated on Wed May 5 00:06:40 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6