...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The memory used by the stack is allocated/deallocated via a StackAllocator which is required to model a stack-allocator concept.
A StackAllocator must satisfy the stack-allocator
concept requirements shown in the following table, in which a
is an object of a StackAllocator
type, sctx
is a stack_context
, and size
is a std::size_t
:
expression |
return type |
notes |
---|---|---|
|
creates a stack allocator |
|
|
|
creates a stack |
|
|
deallocates the stack created by |
Important | |
---|---|
The implementation of |
Important | |
---|---|
Calling |
Note | |
---|---|
Depending on the architecture |