]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/context/include/boost/context/preallocated.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / context / include / boost / context / preallocated.hpp
1
2 // Copyright Oliver Kowalke 2014.
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)
6
7 #ifndef BOOST_CONTEXT_PREALLOCATED_H
8 #define BOOST_CONTEXT_PREALLOCATED_H
9
10 #include <cstddef>
11
12 #include <boost/config.hpp>
13
14 #include <boost/context/detail/config.hpp>
15
16 #ifdef BOOST_HAS_ABI_HEADERS
17 # include BOOST_ABI_PREFIX
18 #endif
19
20 namespace boost {
21 namespace context {
22
23 struct preallocated {
24 void * sp;
25 std::size_t size;
26 stack_context sctx;
27
28 preallocated( void * sp_, std::size_t size_, stack_context sctx_) noexcept :
29 sp( sp_), size( size_), sctx( sctx_) {
30 }
31 };
32
33 }}
34
35 #ifdef BOOST_HAS_ABI_HEADERS
36 # include BOOST_ABI_SUFFIX
37 #endif
38
39 #endif // BOOST_CONTEXT_PREALLOCATED_H