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

Class stack_context

Boost.Coroutine2 provides the class stack_context which will contain the stack pointer and the size of the stack. In case of a segmented_stack, stack_context contains some extra control structures.

struct stack_context
{
    void    *   sp;
    std::size_t size;

    // might contain additional control structures
    // for segmented stacks
}
void * sp

Value:

Pointer to the beginning of the stack.

std::size_t size

Value:

Actual size of the stack.


PrevUpHomeNext