allocation_type.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  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)
  6. //
  7. // See http://www.boost.org/libs/interprocess for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP
  11. #define BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP
  12. #ifndef BOOST_CONFIG_HPP
  13. # include <boost/config.hpp>
  14. #endif
  15. #
  16. #if defined(BOOST_HAS_PRAGMA_ONCE)
  17. # pragma once
  18. #endif
  19. #include <boost/interprocess/detail/config_begin.hpp>
  20. #include <boost/container/detail/allocation_type.hpp>
  21. namespace boost {
  22. namespace interprocess {
  23. #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
  24. typedef int allocation_type;
  25. #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
  26. static const allocation_type allocate_new = boost::container::allocate_new;
  27. static const allocation_type expand_fwd = boost::container::expand_fwd;
  28. static const allocation_type expand_bwd = boost::container::expand_bwd;
  29. static const allocation_type shrink_in_place = boost::container::shrink_in_place;
  30. static const allocation_type try_shrink_in_place= boost::container::try_shrink_in_place;
  31. static const allocation_type nothrow_allocation = boost::container::nothrow_allocation;
  32. static const allocation_type zero_memory = boost::container::zero_memory;
  33. } //namespace interprocess {
  34. } //namespace boost {
  35. #include <boost/interprocess/detail/config_end.hpp>
  36. #endif // #ifndef BOOST_INTERPROCESS_CONTAINERS_ALLOCATION_TYPE_HPP