GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::pmr::monotonic_buffer_resource(3) C++ Standard Libary std::experimental::pmr::monotonic_buffer_resource(3)

std::experimental::pmr::monotonic_buffer_resource - std::experimental::pmr::monotonic_buffer_resource


Defined in header <experimental/memory_resource>
class monotonic_buffer_resource : public memory_resource; (library fundamentals TS)


The class std::experimental::pmr::monotonic_buffer_resource is an special-purpose
memory resource class that releases the allocated memory only when the resource is
destroyed. It is intended for very fast memory allocations in situations where
memory is used to build up a few objects and then is released all at once.


monotonic_buffer_resource can be constructed with an initial buffer. If there is no
initial buffer, or if the buffer is exhausted, additional buffers are obtained from
an upstream memory resource supplied at construction. The size of buffers obtained
follows a geometric progression.


monotonic_buffer_resource is not thread-safe.


constructor Constructs a monotonic_buffer_resource
(public member function)
destructor Destroys a monotonic_buffer_resource, releasing all allocated
[virtual] memory
(virtual public member function)
operator= Copy assignment operator is deleted. monotonic_buffer_resource is
[deleted] not copy assignable
(public member function)


release Release all allocated memory
(public member function)
upstream_resource Returns a pointer to the upstream memory resource
(public member function)


do_allocate Allocate memory
[virtual] (virtual protected member function)
do_deallocate No-op
[virtual] (virtual protected member function)
do_is_equal Compare for equality with another memory_resource
[virtual] (virtual protected member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.