]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/interprocess/include/boost/interprocess/allocators/detail/node_tools.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / interprocess / include / boost / interprocess / allocators / detail / node_tools.hpp
CommitLineData
7c673cae
FG
1//////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// See http://www.boost.org/libs/interprocess for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10
11#ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP
12#define BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP
13
14#ifndef BOOST_CONFIG_HPP
15# include <boost/config.hpp>
16#endif
17#
18#if defined(BOOST_HAS_PRAGMA_ONCE)
19# pragma once
20#endif
21
22#include <boost/interprocess/detail/config_begin.hpp>
23#include <boost/interprocess/detail/workaround.hpp>
24
25#include <boost/intrusive/slist.hpp>
26
27namespace boost {
28namespace interprocess {
29namespace ipcdetail {
30
31
32template<class VoidPointer>
33struct node_slist
34{
35 //This hook will be used to chain the individual nodes
36 typedef typename bi::make_slist_base_hook
37 <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
38
39 //A node object will hold node_t when it's not allocated
40 struct node_t
41 : public slist_hook_t
42 {};
43
44 typedef typename bi::make_slist
45 <node_t, bi::linear<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
46};
47
48} //namespace ipcdetail {
49} //namespace interprocess {
50} //namespace boost {
51
52#include <boost/interprocess/detail/config_end.hpp>
53
54#endif //#ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP