QxOrm  1.4.5
C++ Object Relational Mapping library
qx::memory::delete_object Struct Reference

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

Definition at line 108 of file cont_ptr_utils.h.


Member Function Documentation

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

Definition at line 111 of file cont_ptr_utils.h.


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