...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
value_stack(storage_ptr
sp = {}, unsigned char* temp_buffer = nullptr,std::size_t
temp_size = 0) noexcept;
Constructs an empty stack. Before any value
can be built, the function
reset
must be called.
The sp
parameter is only
used to allocate intermediate storage; it will not be used for the value
returned by release
.
Name |
Description |
---|---|
|
A pointer to the |
|
A pointer to a caller-owned buffer which will be used to store temporary data used while building the value. If this pointer is null, the builder will use the storage pointer to allocate temporary data. |
|
The number of valid bytes of storage pointed to by |