2 // Copyright Oliver Kowalke 2009.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_COROUTINES_STACK_TRAITS_H
8 #define BOOST_COROUTINES_STACK_TRAITS_H
12 #include <boost/config.hpp>
14 #include <boost/coroutine/detail/config.hpp>
16 #ifdef BOOST_HAS_ABI_HEADERS
17 # include BOOST_ABI_PREFIX
21 namespace coroutines {
23 struct BOOST_COROUTINES_DECL stack_traits
25 static bool is_unbounded() BOOST_NOEXCEPT;
27 static std::size_t page_size() BOOST_NOEXCEPT;
29 static std::size_t default_size() BOOST_NOEXCEPT;
31 static std::size_t minimum_size() BOOST_NOEXCEPT;
33 static std::size_t maximum_size() BOOST_NOEXCEPT;
38 #ifdef BOOST_HAS_ABI_HEADERS
39 # include BOOST_ABI_SUFFIX
42 #endif // BOOST_COROUTINES_STACK_TRAITS_H