Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

delete_ptr Struct Reference

functional class deletes a pointer fun to use w/ for_each template More...

List of all members.

Public Member Functions

template<class P> void operator() (P p)


Detailed Description

functional class deletes a pointer fun to use w/ for_each template

I got it from here - Z.F. Newsgroups: comp.lang.c++.moderated From: Didier Trosset <didier-dot-tros...@acqiris.com> Date: 21 Oct 2004 15:39:18 -0400 Subject: Re: Standard way to delete container of pointers

Definition at line 35 of file CalibItemMgr.cxx.


Member Function Documentation

template<class P>
void delete_ptr::operator() p  )  [inline]
 

Definition at line 38 of file CalibItemMgr.cxx.

00039   {
00040     delete p;
00041     p = 0;
00042   }


The documentation for this struct was generated from the following file:
Generated on Thu Dec 4 07:57:31 2008 by doxygen 1.3.3