Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:44:48

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/container for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 
0011 #ifndef BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
0012 #define BOOST_CONTAINER_DETAIL_POOL_COMMON_HPP
0013 
0014 #ifndef BOOST_CONFIG_HPP
0015 #  include <boost/config.hpp>
0016 #endif
0017 
0018 #if defined(BOOST_HAS_PRAGMA_ONCE)
0019 #  pragma once
0020 #endif
0021 
0022 #include <boost/container/detail/config_begin.hpp>
0023 #include <boost/container/detail/workaround.hpp>
0024 
0025 #include <boost/intrusive/slist.hpp>
0026 
0027 namespace boost {
0028 namespace container {
0029 namespace dtl {
0030 
0031 template<class VoidPointer>
0032 struct node_slist
0033 {
0034    //This hook will be used to chain the individual nodes
0035     typedef typename bi::make_slist_base_hook
0036       <bi::void_pointer<VoidPointer>, bi::link_mode<bi::normal_link> >::type slist_hook_t;
0037 
0038    //A node object will hold node_t when it's not allocated
0039    typedef slist_hook_t node_t;
0040 
0041    typedef typename bi::make_slist
0042       <node_t, bi::linear<true>, bi::cache_last<true>, bi::base_hook<slist_hook_t> >::type node_slist_t;
0043 };
0044 
0045 template<class T>
0046 struct is_stateless_segment_manager
0047 {
0048    BOOST_STATIC_CONSTEXPR bool value = false;
0049 };
0050 
0051 }  //namespace dtl {
0052 }  //namespace container {
0053 }  //namespace boost {
0054 
0055 #include <boost/container/detail/config_end.hpp>
0056 
0057 #endif   //#ifndef BOOST_CONTAINER_DETAIL_ADAPTIVE_NODE_POOL_IMPL_HPP