1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2005-2013. 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/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
12 #define BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
22 #include <boost/container/detail/config_begin.hpp>
23 #include <boost/container/detail/workaround.hpp>
25 #include <boost/intrusive/slist.hpp>
29 namespace container_detail {
31 template<class VoidPointer>
34 //This hook will be used to chain the individual nodes
35 typedef typename bi::make_slist_base_hook
36 <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
38 //A node object will hold node_t when it's not allocated
39 typedef slist_hook_t node_t;
41 typedef typename bi::make_slist
42 <node_t, bi::linear<true>, bi::cache_last<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
46 struct is_stateless_segment_manager
48 static const bool value = false;
51 } //namespace container_detail {
52 } //namespace container {
55 #include <boost/container/detail/config_end.hpp>
57 #endif //#ifndef BOOST_CONTAINER_DETAIL_ADAPTIVE_NODE_POOL_IMPL_HPP