comparison DEPENDENCIES/generic/include/boost/container/detail/pool_common.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2005-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/container for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10
11 #ifndef BOOST_CONTAINER_DETAIL_NODE_POOL_COMMON_HPP
12 #define BOOST_CONTAINER_DETAIL_NODE_POOL_COMMON_HPP
13
14 #if defined(_MSC_VER)
15 # pragma once
16 #endif
17
18 #include "config_begin.hpp"
19 #include <boost/intrusive/slist.hpp>
20 #include <new>
21
22 namespace boost {
23 namespace container {
24 namespace container_detail {
25
26 template<class VoidPointer>
27 struct node_slist
28 {
29 //This hook will be used to chain the individual nodes
30 typedef typename bi::make_slist_base_hook
31 <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
32
33 //A node object will hold node_t when it's not allocated
34 typedef slist_hook_t node_t;
35
36 typedef typename bi::make_slist
37 <node_t, bi::linear<true>, bi::cache_last<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
38 };
39
40 template<class T>
41 struct is_stateless_segment_manager
42 {
43 static const bool value = false;
44 };
45
46 } //namespace container_detail {
47 } //namespace container {
48 } //namespace boost {
49
50 #include <boost/container/detail/config_end.hpp>
51
52 #endif //#ifndef BOOST_CONTAINER_DETAIL_ADAPTIVE_NODE_POOL_IMPL_HPP