|  | Home | Libraries | People | FAQ | More | 
Constructor.
monotonic_resource( std::byte* buffer, std::size_t size, storage_ptr upstream);
This constructs the resource and indicates that subsequent allocations should use the specified caller-owned buffer. When this buffer is exhausted, dynamic allocations from the upstream resource are made.
This constructor is guaranteed not to perform any dynamic allocations.
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  | 
| 
                       | An optional upstream memory resource to use for performing internal dynamic allocations. If this parameter is omitted, the default resource is used. |