std::experi...er_resource(3)
π NAME π
Okay bestie, this page is about std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource β the constructor named exactly like the class, which is iconic behavior. The NAME line repeats it as std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource too. We're on the std::experi...er_resource(3) page from the C++ Standard Libary π
β¨
β¨ Synopsis β¨
Seven constructors, no cap. Here's the exact synopsis vibe:
monotonic_buffer_resource(); (1) (library
fundamentals TS)
explicit monotonic_buffer_resource( memory_resource* (2) (library
fundamentals TS)
upstream );
explicit monotonic_buffer_resource( std::size_t (3) (library
fundamentals TS)
initial_size );
monotonic_buffer_resource( std::size_t initial_size,
memory_resource* upstream (4) (library
fundamentals TS)
);
monotonic_buffer_resource( void* buffer, std::size_t (5) (library
fundamentals TS)
buffer_size );
monotonic_buffer_resource( void* buffer, std::size_t
buffer_size, (6) (library
fundamentals TS)
memory_resource* upstream
);
monotonic_buffer_resource( const (7) (library
fundamentals TS)
monotonic_buffer_resource& ) = delete;
Constructs a monotonic_buffer_resource. Constructors that do <not> take an upstream memory resource pointer use the return value of std::experimental::pmr::get_default_resource() as the upstream memory resource. π«Ά
(1)β(library fundamentals TS)Sets the current buffer to null and the next buffer size to an implementation-defined size.(2)β(library fundamentals TS)Same energy as(1): current buffer goes null, next buffer size becomes an implementation-defined size.(3)β(library fundamentals TS)Sets the current buffer to null and the next buffer size to a size no smaller thaninitial_size.(4)β(library fundamentals TS)Same as(3): current buffer null, next buffer size no smaller thaninitial_size.(5)β(library fundamentals TS)Sets the current buffer tobufferand the next buffer size tobuffer_size(but not less than1). Then increase the next buffer size by an implementation-defined growth factor (which does not have to be integral). π(6)β(library fundamentals TS)Same as(5): current buffer isbuffer, next buffer size isbuffer_size(but not less than1), then the next buffer size gets increased by an implementation-defined growth factor (which does not have to be integral).(7)β(library fundamentals TS)Copy constructor is deleted. Periodt.
π Parameters π
upstreamβ the upstream memory resource to use; must point to a valid memory resource.initial_sizeβ the minimum size of the first buffer to allocate; must be greater than zero.bufferβ the initial buffer to use.buffer_sizeβ the size of the initial buffer; cannot be greater than the number of bytes inbuffer.
π Category π
- * Noindexed pages
Okay bye bestie, this page is brought to you by http://cppreference.com, version 2024.06.10, and the manual page std::experi...er_resource(3) π¦π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms