stlab.adobe.com Adobe Systems Incorporated

delete_ptr< T * > Struct Template Reference
[Miscellaneous Functional Operators]

A function object for type T that invokes delete on a T*. More...

#include <operator.hpp>

List of all members.


Public Member Functions

void operator() (T *x) const throw ()

Detailed Description

template<typename T>
struct adobe::delete_ptr< T * >

delete_ptr is similar to boost::lambda::delete_ptr except it inhereits from std::unary_function so it can also be used with boost::bind.

That requirement changes the interface so the pointer type must be provided in advance. This is as of boost 1.28. This functionality may be included in later releases of boost.

Definition at line 152 of file operator.hpp.


Member Function Documentation

void operator() ( T *  x  )  const throw ()

Definition at line 154 of file operator.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google