...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
explicit monotonic_resource(std::size_t
initial_size = 1024,storage_ptr
upstream = {}) noexcept;
This constructs the resource and indicates that the first internal dynamic
allocation shall be at least initial_size
bytes.
This constructor is guaranteed not to perform any dynamic allocations.
Constant.
No-throw guarantee.
Name |
Description |
---|---|
|
The size of the first internal dynamic allocation. If this is lower than the implementation-defined lower limit, then the lower limit is used instead. |
|
An optional upstream memory resource to use for performing internal dynamic allocations. If this parameter is omitted, the default resource is used. |