File indexing completed on 2025-01-18 09:30:31
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_COROUTINES_DETAIL_PREALLOCATED_H
0008 #define BOOST_COROUTINES_DETAIL_PREALLOCATED_H
0009
0010 #include <cstddef>
0011
0012 #include <boost/config.hpp>
0013
0014 #include <boost/coroutine/detail/config.hpp>
0015 #include <boost/coroutine/stack_context.hpp>
0016
0017 #ifdef BOOST_HAS_ABI_HEADERS
0018 # include BOOST_ABI_PREFIX
0019 #endif
0020
0021 namespace boost {
0022 namespace coroutines {
0023 namespace detail {
0024
0025 struct BOOST_COROUTINES_DECL preallocated {
0026 void * sp;
0027 std::size_t size;
0028 stack_context sctx;
0029
0030 preallocated() BOOST_NOEXCEPT :
0031 sp( 0), size( 0), sctx() {
0032 }
0033
0034 preallocated( void * sp_, std::size_t size_, stack_context sctx_) BOOST_NOEXCEPT :
0035 sp( sp_), size( size_), sctx( sctx_) {
0036 }
0037 };
0038
0039 }}}
0040
0041 #ifdef BOOST_HAS_ABI_HEADERS
0042 # include BOOST_ABI_SUFFIX
0043 #endif
0044
0045 #endif