Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Stack allocation

A fcontext_t requires a stack which will be allocated/deallocated by a StackAllocator (examples contain an implementation of simple_stack_allocator).

[Note] Note

The implementation of a StackAllocator might include logic to protect against exceeding the context's available stack size rather than leaving it as undefined behaviour.

[Note] Note

The stack is not required to be aligned; alignment takes place inside make_fcontext().

[Note] Note

Depending on the architecture StackAllocator returns an address from the top of the stack (grows downwards) or the bottom of the stack (grows upwards).


PrevUpHomeNext