File indexing completed on 2025-01-18 09:30:09
0001
0002
0003
0004
0005
0006
0007
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
0032 allocate_new_v = 0x01,
0033 expand_fwd_v = 0x02,
0034 expand_bwd_v = 0x04,
0035
0036
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
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 }
0054 }
0055
0056 #include <boost/container/detail/config_end.hpp>
0057
0058 #endif