stack_allocator.hpp 887 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright Oliver Kowalke 2009.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_COROUTINES_STACK_ALLOCATOR_H
  6. #define BOOST_COROUTINES_STACK_ALLOCATOR_H
  7. #include <cstddef>
  8. #include <boost/config.hpp>
  9. #include <boost/context/detail/config.hpp>
  10. #include <boost/coroutine/segmented_stack_allocator.hpp>
  11. #include <boost/coroutine/standard_stack_allocator.hpp>
  12. #ifdef BOOST_HAS_ABI_HEADERS
  13. # include BOOST_ABI_PREFIX
  14. #endif
  15. namespace boost {
  16. namespace coroutines {
  17. #if defined(BOOST_USE_SEGMENTED_STACKS)
  18. typedef segmented_stack_allocator stack_allocator;
  19. #else
  20. typedef standard_stack_allocator stack_allocator;
  21. #endif
  22. }}
  23. #ifdef BOOST_HAS_ABI_HEADERS
  24. # include BOOST_ABI_SUFFIX
  25. #endif
  26. #endif // BOOST_COROUTINES_STACK_ALLOCATOR_H