Chris@16: ////////////////////////////////////////////////////////////////////////////// Chris@16: // Chris@101: // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // See http://www.boost.org/libs/container for documentation. Chris@16: // Chris@16: ////////////////////////////////////////////////////////////////////////////// Chris@16: Chris@101: #ifndef BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP Chris@101: #define BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP Chris@16: Chris@101: #ifndef BOOST_CONFIG_HPP Chris@101: # include Chris@101: #endif Chris@101: Chris@101: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@101: #include Chris@101: #include Chris@101: Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace container { Chris@16: namespace container_detail { Chris@16: Chris@16: template Chris@16: struct node_slist Chris@16: { Chris@16: //This hook will be used to chain the individual nodes Chris@16: typedef typename bi::make_slist_base_hook Chris@16: , bi::link_mode >::type slist_hook_t; Chris@16: Chris@16: //A node object will hold node_t when it's not allocated Chris@16: typedef slist_hook_t node_t; Chris@16: Chris@16: typedef typename bi::make_slist Chris@16: , bi::cache_last, bi::base_hook >::type node_slist_t; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct is_stateless_segment_manager Chris@16: { Chris@16: static const bool value = false; Chris@16: }; Chris@16: Chris@16: } //namespace container_detail { Chris@16: } //namespace container { Chris@16: } //namespace boost { Chris@16: Chris@16: #include Chris@16: Chris@16: #endif //#ifndef BOOST_CONTAINER_DETAIL_ADAPTIVE_NODE_POOL_IMPL_HPP