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
8 [section:attributes Attributes]
10 Class `attributes` is used to specify parameters required to setup a
22 flag_unwind_t do_unwind;
24 attributes() noexcept;
26 explicit attributes( std::size_t size_) noexcept;
28 explicit attributes( flag_unwind_t do_unwind_) noexcept;
30 explicit attributes( std::size_t size_, flag_unwind_t do_unwind_) noexcept;
33 [heading `attributes()`]
35 [[Effects:] [Default constructor using `boost::context::default_stacksize()`, does unwind
36 the stack after coroutine/generator is complete.]]
37 [[Throws:] [Nothing.]]
40 [heading `attributes( std::size_t size)`]
42 [[Effects:] [Argument `size` defines stack size of the new coroutine.
43 Stack unwinding after termination.]]
44 [[Throws:] [Nothing.]]
47 [heading `attributes( flag_unwind_t do_unwind)`]
49 [[Effects:] [Argument `do_unwind` determines if stack will be unwound after
50 termination or not. The default stacksize is used for the new coroutine.]]
51 [[Throws:] [Nothing.]]
54 [heading `attributes( std::size_t size, flag_unwind_t do_unwind)`]
56 [[Effects:] [Arguments `size` and `do_unwind` are given by the user.]]
57 [[Throws:] [Nothing.]]