Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:09

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_ALLOCATION_TYPE_HPP
0012 #define BOOST_CONTAINER_ALLOCATION_TYPE_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 namespace boost {
0026 namespace container {
0027 
0028 #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
0029 enum allocation_type_v
0030 {
0031    // constants for allocation commands
0032    allocate_new_v   = 0x01,
0033    expand_fwd_v     = 0x02,
0034    expand_bwd_v     = 0x04,
0035 //   expand_both    = expand_fwd | expand_bwd,
0036 //   expand_or_new  = allocate_new | expand_both,
0037    shrink_in_place_v = 0x08,
0038    nothrow_allocation_v = 0x10,
0039    zero_memory_v = 0x20,
0040    try_shrink_in_place_v = 0x40
0041 };
0042 
0043 typedef unsigned int allocation_type;
0044 #endif   //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
0045 static const allocation_type allocate_new       = (allocation_type)allocate_new_v;
0046 static const allocation_type expand_fwd         = (allocation_type)expand_fwd_v;
0047 static const allocation_type expand_bwd         = (allocation_type)expand_bwd_v;
0048 static const allocation_type shrink_in_place    = (allocation_type)shrink_in_place_v;
0049 static const allocation_type try_shrink_in_place= (allocation_type)try_shrink_in_place_v;
0050 static const allocation_type nothrow_allocation = (allocation_type)nothrow_allocation_v;
0051 static const allocation_type zero_memory        = (allocation_type)zero_memory_v;
0052 
0053 }  //namespace container {
0054 }  //namespace boost {
0055 
0056 #include <boost/container/detail/config_end.hpp>
0057 
0058 #endif   //BOOST_CONTAINER_ALLOCATION_TYPE_HPP