Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: // Chris@102: // (C) Copyright Ion Gaztanaga 2014-2014 Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. Chris@102: // (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: // Chris@102: // See http://www.boost.org/libs/intrusive for documentation. Chris@102: // Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: Chris@102: #ifndef BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP Chris@102: #define BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP Chris@102: Chris@102: #ifndef BOOST_CONFIG_HPP Chris@102: # include Chris@102: #endif Chris@102: Chris@102: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@102: # pragma once Chris@102: #endif Chris@102: Chris@102: namespace boost { Chris@102: namespace intrusive { Chris@102: namespace detail { Chris@102: Chris@102: class null_disposer Chris@102: { Chris@102: public: Chris@102: template Chris@102: void operator()(Pointer) Chris@102: {} Chris@102: }; Chris@102: Chris@102: template Chris@102: class init_disposer Chris@102: { Chris@102: typedef typename NodeAlgorithms::node_ptr node_ptr; Chris@102: Chris@102: public: Chris@102: void operator()(const node_ptr & p) Chris@102: { NodeAlgorithms::init(p); } Chris@102: }; Chris@102: Chris@102: } //namespace detail{ Chris@102: } //namespace intrusive{ Chris@102: } //namespace boost{ Chris@102: Chris@102: #endif //BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP