GCS  0.2.3
Public Member Functions
gu::DeleteObject Class Reference

#include <gu_utils.hpp>

Public Member Functions

template<class T >
void operator() (T *t)
 

Detailed Description

Object deletion operator. Convenient with STL containers containing pointers. Example:

void cleanup()
{
for_each(container.begin(), container.end(), DeleteObject());
container.clear();
}

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