Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
null_deleter.hpp File Reference
#include <boost/config.hpp>
Include dependency graph for null_deleter.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::null_deleter
 A function object that does nothing and can be used as an empty deleter for shared_ptr. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 

Detailed Description

Author
Andrey Semashev
Date
22.04.2007

This header contains a null_deleter implementation. This is an empty function object that receives a pointer and does nothing with it. Such empty deletion strategy may be convenient, for example, when constructing shared_ptrs that point to some object that should not be deleted (i.e. a variable on the stack or some global singleton, like std::cout).