1 //////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2008-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)
7 // See http://www.boost.org/libs/interprocess for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP
12 #define BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP
14 #ifndef BOOST_CONFIG_HPP
15 # include <boost/config.hpp>
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
22 #include <boost/interprocess/detail/config_begin.hpp>
23 #include <boost/container/detail/allocation_type.hpp>
26 namespace interprocess {
28 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
29 typedef int allocation_type;
30 #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
31 static const allocation_type allocate_new = boost::container::allocate_new;
32 static const allocation_type expand_fwd = boost::container::expand_fwd;
33 static const allocation_type expand_bwd = boost::container::expand_bwd;
34 static const allocation_type shrink_in_place = boost::container::shrink_in_place;
35 static const allocation_type try_shrink_in_place= boost::container::try_shrink_in_place;
36 static const allocation_type nothrow_allocation = boost::container::nothrow_allocation;
37 static const allocation_type zero_memory = boost::container::zero_memory;
39 } //namespace interprocess {
42 #include <boost/interprocess/detail/config_end.hpp>
44 #endif // #ifndef BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP