stack_traits.hpp 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_TRAITS_H
  6. #define BOOST_COROUTINES_STACK_TRAITS_H
  7. #include <cstddef>
  8. #include <boost/config.hpp>
  9. #include <boost/coroutine/detail/config.hpp>
  10. #ifdef BOOST_HAS_ABI_HEADERS
  11. # include BOOST_ABI_PREFIX
  12. #endif
  13. namespace boost {
  14. namespace coroutines {
  15. struct BOOST_COROUTINES_DECL stack_traits
  16. {
  17. static bool is_unbounded() BOOST_NOEXCEPT;
  18. static std::size_t page_size() BOOST_NOEXCEPT;
  19. static std::size_t default_size() BOOST_NOEXCEPT;
  20. static std::size_t minimum_size() BOOST_NOEXCEPT;
  21. static std::size_t maximum_size() BOOST_NOEXCEPT;
  22. };
  23. }}
  24. #ifdef BOOST_HAS_ABI_HEADERS
  25. # include BOOST_ABI_SUFFIX
  26. #endif
  27. #endif // BOOST_COROUTINES_STACK_TRAITS_H