...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A fcontext_t requires a stack which will be allocated/deallocated
by a StackAllocator. Boost.Context
provides the default implementation stack_allocator
but a customized StackAllocator can be used instead.
A StackAllocator must satisfy the StackAllocator
concept requirements shown in the following table, in which a
is an object of a StackAllocator
type, p
is a void *
, and
s
is a std::size_t
:
expression |
return type |
notes |
---|---|---|
|
|
returns a pointer to |
|
|
deallocates |
Important | |
---|---|
The implementation of |
Important | |
---|---|
Calling |
Note | |
---|---|
The stack is not required to be aligned; alignment takes place inside |
Note | |
---|---|
Depending on the architecture |