libcopp  1.1.0
stack_traits.h
Go to the documentation of this file.
1 #ifndef _COPP_STACKCONTEXT_STACK_TRAITS_H
2 #define _COPP_STACKCONTEXT_STACK_TRAITS_H
3 
4 # pragma once
5 
6 #include <cstddef>
8 
9 #ifdef COPP_HAS_ABI_HEADERS
10 # include COPP_ABI_PREFIX
11 #endif
12 
13 namespace copp {
14  struct stack_traits
15  {
16  static bool is_unbounded() COPP_MACRO_NOEXCEPT;
17 
18  static std::size_t page_size() COPP_MACRO_NOEXCEPT;
19 
20  static std::size_t default_size() COPP_MACRO_NOEXCEPT;
21 
22  static std::size_t minimum_size() COPP_MACRO_NOEXCEPT;
23 
24  static std::size_t maximum_size() COPP_MACRO_NOEXCEPT;
25 
26  static std::size_t round_to_page_size(std::size_t stacksize) COPP_MACRO_NOEXCEPT;
27  };
28 
29 }
30 
31 #ifdef COPP_HAS_ABI_HEADERS
32 # include COPP_ABI_SUFFIX
33 #endif
34 
35 #endif // BOOST_CONTEXT_STACK_TRAITS_H
static std::size_t default_size() COPP_MACRO_NOEXCEPT
static std::size_t page_size() COPP_MACRO_NOEXCEPT
static bool is_unbounded() COPP_MACRO_NOEXCEPT
#define COPP_MACRO_NOEXCEPT
Definition: features.h:71
static std::size_t maximum_size() COPP_MACRO_NOEXCEPT
static std::size_t minimum_size() COPP_MACRO_NOEXCEPT
static std::size_t round_to_page_size(std::size_t stacksize) COPP_MACRO_NOEXCEPT