Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/utility/empty_deleter.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /* |
Chris@16 | 2 * Copyright Andrey Semashev 2007 - 2013. |
Chris@16 | 3 * Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 4 * (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 5 * http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 6 */ |
Chris@101 | 7 |
Chris@16 | 8 /*! |
Chris@16 | 9 * \file empty_deleter.hpp |
Chris@16 | 10 * \author Andrey Semashev |
Chris@16 | 11 * \date 22.04.2007 |
Chris@16 | 12 * |
Chris@16 | 13 * This header contains an \c empty_deleter implementation. This is an empty |
Chris@16 | 14 * function object that receives a pointer and does nothing with it. |
Chris@16 | 15 * Such empty deletion strategy may be convenient, for example, when |
Chris@16 | 16 * constructing <tt>shared_ptr</tt>s that point to some object that should not be |
Chris@16 | 17 * deleted (i.e. a variable on the stack or some global singleton, like <tt>std::cout</tt>). |
Chris@16 | 18 */ |
Chris@16 | 19 |
Chris@101 | 20 #ifndef BOOST_UTILITY_EMPTY_DELETER_HPP |
Chris@101 | 21 #define BOOST_UTILITY_EMPTY_DELETER_HPP |
Chris@16 | 22 |
Chris@16 | 23 #include <boost/config.hpp> |
Chris@101 | 24 #include <boost/core/null_deleter.hpp> |
Chris@16 | 25 |
Chris@16 | 26 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@16 | 27 #pragma once |
Chris@16 | 28 #endif |
Chris@16 | 29 |
Chris@101 | 30 #if defined(__GNUC__) |
Chris@101 | 31 #pragma message "This header is deprecated, use boost/core/null_deleter.hpp instead." |
Chris@101 | 32 #elif defined(_MSC_VER) |
Chris@101 | 33 #pragma message("This header is deprecated, use boost/core/null_deleter.hpp instead.") |
Chris@101 | 34 #endif |
Chris@101 | 35 |
Chris@16 | 36 namespace boost { |
Chris@16 | 37 |
Chris@101 | 38 //! A deprecated name for \c null_deleter |
Chris@101 | 39 typedef null_deleter empty_deleter; |
Chris@16 | 40 |
Chris@16 | 41 } // namespace boost |
Chris@16 | 42 |
Chris@101 | 43 #endif // BOOST_UTILITY_EMPTY_DELETER_HPP |