Functor to delete objects pointed by a container of pointers. More...
#include <cont_ptr_utils.h>
Public Member Functions | |
template<typename _Tp > | |
void | operator() (_Tp *ptr) const |
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());
void nvwa::delete_object::operator() | ( | _Tp * | ptr | ) | const [inline] |