...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
static_resource( std::byte* buffer, std::size_t size);
This constructs the resource to use the specified buffer for subsequent
calls to allocate. When the buffer is exhausted, allocate will throw
std::bad_alloc
.
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The buffer to use. Ownership is not transferred; the caller is responsible for ensuring that the lifetime of the buffer extends until the resource is destroyed. |
|
The number of valid bytes pointed to by |