annotate DEPENDENCIES/generic/include/boost/intrusive/detail/simple_disposers.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 f46d142149f5
children
rev   line source
Chris@102 1 /////////////////////////////////////////////////////////////////////////////
Chris@102 2 //
Chris@102 3 // (C) Copyright Ion Gaztanaga 2014-2014
Chris@102 4 //
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 8 //
Chris@102 9 // See http://www.boost.org/libs/intrusive for documentation.
Chris@102 10 //
Chris@102 11 /////////////////////////////////////////////////////////////////////////////
Chris@102 12
Chris@102 13 #ifndef BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP
Chris@102 14 #define BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP
Chris@102 15
Chris@102 16 #ifndef BOOST_CONFIG_HPP
Chris@102 17 # include <boost/config.hpp>
Chris@102 18 #endif
Chris@102 19
Chris@102 20 #if defined(BOOST_HAS_PRAGMA_ONCE)
Chris@102 21 # pragma once
Chris@102 22 #endif
Chris@102 23
Chris@102 24 namespace boost {
Chris@102 25 namespace intrusive {
Chris@102 26 namespace detail {
Chris@102 27
Chris@102 28 class null_disposer
Chris@102 29 {
Chris@102 30 public:
Chris@102 31 template <class Pointer>
Chris@102 32 void operator()(Pointer)
Chris@102 33 {}
Chris@102 34 };
Chris@102 35
Chris@102 36 template<class NodeAlgorithms>
Chris@102 37 class init_disposer
Chris@102 38 {
Chris@102 39 typedef typename NodeAlgorithms::node_ptr node_ptr;
Chris@102 40
Chris@102 41 public:
Chris@102 42 void operator()(const node_ptr & p)
Chris@102 43 { NodeAlgorithms::init(p); }
Chris@102 44 };
Chris@102 45
Chris@102 46 } //namespace detail{
Chris@102 47 } //namespace intrusive{
Chris@102 48 } //namespace boost{
Chris@102 49
Chris@102 50 #endif //BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP