Chris@16: /*
Chris@16: * Copyright Andrey Semashev 2007 - 2013.
Chris@16: * Distributed under the Boost Software License, Version 1.0.
Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16: * http://www.boost.org/LICENSE_1_0.txt)
Chris@16: */
Chris@101:
Chris@16: /*!
Chris@16: * \file empty_deleter.hpp
Chris@16: * \author Andrey Semashev
Chris@16: * \date 22.04.2007
Chris@16: *
Chris@16: * This header contains an \c empty_deleter implementation. This is an empty
Chris@16: * function object that receives a pointer and does nothing with it.
Chris@16: * Such empty deletion strategy may be convenient, for example, when
Chris@16: * constructing shared_ptrs that point to some object that should not be
Chris@16: * deleted (i.e. a variable on the stack or some global singleton, like std::cout).
Chris@16: */
Chris@16:
Chris@101: #ifndef BOOST_UTILITY_EMPTY_DELETER_HPP
Chris@101: #define BOOST_UTILITY_EMPTY_DELETER_HPP
Chris@16:
Chris@16: #include
Chris@101: #include
Chris@16:
Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@16: #pragma once
Chris@16: #endif
Chris@16:
Chris@101: #if defined(__GNUC__)
Chris@101: #pragma message "This header is deprecated, use boost/core/null_deleter.hpp instead."
Chris@101: #elif defined(_MSC_VER)
Chris@101: #pragma message("This header is deprecated, use boost/core/null_deleter.hpp instead.")
Chris@101: #endif
Chris@101:
Chris@16: namespace boost {
Chris@16:
Chris@101: //! A deprecated name for \c null_deleter
Chris@101: typedef null_deleter empty_deleter;
Chris@16:
Chris@16: } // namespace boost
Chris@16:
Chris@101: #endif // BOOST_UTILITY_EMPTY_DELETER_HPP