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

PrevUpHomeNext

Class stack_context

Boost.Coroutine provides the class boost::coroutines::stack_context which will contain the stack pointer and the size of the stack. In case of a segemented-stack boost::coroutines::stack_context contains some extra controll structures.

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

    // might contain addition controll structures
    // for instance for segmented stacks
}
void * sp

Value:

Pointer to the beginning of the stack.

std::size_t size

Value:

Actual size of the stack.


PrevUpHomeNext