...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
stream_parser( storage_ptr sp, parse_options const& opt, unsigned char* buffer, std::size_t size);
This constructs a new parser which first uses the caller-owned storage
pointed to by buffer
for temporary storage, falling back to the memory resource sp
if needed. The parser will use the
specified parsing options.
The parsed value will use the default memory resource for storage. To
use a different resource, call reset
after construction.
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The memory resource to use for temporary storage after |
|
The parsing options to use. |
|
A pointer to valid memory of at least |
|
The number of valid bytes in |