gnash::CheckedDeleter< T > Struct Template Reference

Delete a pointer safely. More...

#include <GnashAlgorithm.h>

Detailed Description

template<typename T>
struct gnash::CheckedDeleter< T >

Delete a pointer safely.

Any depth of pointers-to-pointers (up to maximum template recursion) can be passed to this struct. The type of the pointee is deduced and passed to boost::checked_deleter, which ensures that the type is fully known at the point of deletion. It does not, of course, check that the pointer was allocated with new, so this isn't completely idiot-proof.

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