1 //////////////////////////////////////////////////////////////////////////////
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)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP
12 #define BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP
18 #include <boost/interprocess/detail/config_begin.hpp>
19 #include <boost/interprocess/detail/workaround.hpp>
21 #include <boost/intrusive/slist.hpp>
24 namespace interprocess {
28 template<class VoidPointer>
31 //This hook will be used to chain the individual nodes
32 typedef typename bi::make_slist_base_hook
33 <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
35 //A node object will hold node_t when it's not allocated
40 typedef typename bi::make_slist
41 <node_t, bi::linear<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
44 } //namespace ipcdetail {
45 } //namespace interprocess {
48 #include <boost/interprocess/detail/config_end.hpp>
50 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_NODE_TOOLS_HPP