Chris@16
|
1 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
2 //
|
Chris@101
|
3 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
|
Chris@16
|
4 // Software License, Version 1.0. (See accompanying file
|
Chris@16
|
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 //
|
Chris@16
|
7 // See http://www.boost.org/libs/container for documentation.
|
Chris@16
|
8 //
|
Chris@16
|
9 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
10
|
Chris@101
|
11 #ifndef BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
|
Chris@101
|
12 #define BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
|
Chris@16
|
13
|
Chris@101
|
14 #ifndef BOOST_CONFIG_HPP
|
Chris@101
|
15 # include <boost/config.hpp>
|
Chris@101
|
16 #endif
|
Chris@101
|
17
|
Chris@101
|
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
|
Chris@16
|
19 # pragma once
|
Chris@16
|
20 #endif
|
Chris@16
|
21
|
Chris@101
|
22 #include <boost/container/detail/config_begin.hpp>
|
Chris@101
|
23 #include <boost/container/detail/workaround.hpp>
|
Chris@101
|
24
|
Chris@16
|
25 #include <boost/intrusive/slist.hpp>
|
Chris@16
|
26
|
Chris@16
|
27 namespace boost {
|
Chris@16
|
28 namespace container {
|
Chris@16
|
29 namespace container_detail {
|
Chris@16
|
30
|
Chris@16
|
31 template<class VoidPointer>
|
Chris@16
|
32 struct node_slist
|
Chris@16
|
33 {
|
Chris@16
|
34 //This hook will be used to chain the individual nodes
|
Chris@16
|
35 typedef typename bi::make_slist_base_hook
|
Chris@16
|
36 <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
|
Chris@16
|
37
|
Chris@16
|
38 //A node object will hold node_t when it's not allocated
|
Chris@16
|
39 typedef slist_hook_t node_t;
|
Chris@16
|
40
|
Chris@16
|
41 typedef typename bi::make_slist
|
Chris@16
|
42 <node_t, bi::linear<true>, bi::cache_last<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
|
Chris@16
|
43 };
|
Chris@16
|
44
|
Chris@16
|
45 template<class T>
|
Chris@16
|
46 struct is_stateless_segment_manager
|
Chris@16
|
47 {
|
Chris@16
|
48 static const bool value = false;
|
Chris@16
|
49 };
|
Chris@16
|
50
|
Chris@16
|
51 } //namespace container_detail {
|
Chris@16
|
52 } //namespace container {
|
Chris@16
|
53 } //namespace boost {
|
Chris@16
|
54
|
Chris@16
|
55 #include <boost/container/detail/config_end.hpp>
|
Chris@16
|
56
|
Chris@16
|
57 #endif //#ifndef BOOST_CONTAINER_DETAIL_ADAPTIVE_NODE_POOL_IMPL_HPP
|