]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/intrusive/detail/simple_disposers.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / intrusive / detail / simple_disposers.hpp
CommitLineData
7c673cae
FG
1/////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2014-2014
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9// See http://www.boost.org/libs/intrusive for documentation.
10//
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP
14#define BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP
15
20effc67
TL
16#include <boost/intrusive/detail/workaround.hpp>
17
7c673cae
FG
18#ifndef BOOST_CONFIG_HPP
19# include <boost/config.hpp>
20#endif
21
22#if defined(BOOST_HAS_PRAGMA_ONCE)
23# pragma once
24#endif
25
26namespace boost {
27namespace intrusive {
28namespace detail {
29
30class null_disposer
31{
32 public:
33 template <class Pointer>
34 void operator()(Pointer)
35 {}
36};
37
38template<class NodeAlgorithms>
39class init_disposer
40{
41 typedef typename NodeAlgorithms::node_ptr node_ptr;
42
43 public:
1e59de90 44 BOOST_INTRUSIVE_FORCEINLINE void operator()(node_ptr p)
7c673cae
FG
45 { NodeAlgorithms::init(p); }
46};
47
48} //namespace detail{
49} //namespace intrusive{
50} //namespace boost{
51
52#endif //BOOST_INTRUSIVE_DETAIL_SIMPLE_DISPOSERS_HPP