2 / Copyright (c) 2014 Andrey Semashev
4 / Distributed under the Boost Software License, Version 1.0. (See accompanying
5 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 [section:null_deleter null_deleter]
16 [section Header <boost/core/null_deleter.hpp>]
18 The header `<boost/core/null_deleter.hpp>` defines the `boost::null_deleter` function object,
19 which can be used as a deleter with smart pointers such as `unique_ptr` or `shared_ptr`. The
20 deleter doesn't do anything with the pointer provided upon deallocation, which makes it useful
21 when the pointed object is deallocated elsewhere.
25 std::shared_ptr< std::ostream > make_stream()
27 return std::shared_ptr< std::ostream >(&std::cout, boost::null_deleter());