std::experi...er_resource(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ 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. (1) β€” (library fundamentals TS) Sets the current buffer to null and the next buffer size to an implementation-defined size.
  2. (2) β€” (library fundamentals TS) Same energy as (1): current buffer goes null, next buffer size becomes an implementation-defined size.
  3. (3) β€” (library fundamentals TS) Sets the current buffer to null and the next buffer size to a size no smaller than initial_size.
  4. (4) β€” (library fundamentals TS) Same as (3): current buffer null, next buffer size no smaller than initial_size.
  5. (5) β€” (library fundamentals TS) Sets the current buffer to buffer and the next buffer size to buffer_size (but not less than 1). Then increase the next buffer size by an implementation-defined growth factor (which does not have to be integral). πŸ’€
  6. (6) β€” (library fundamentals TS) Same as (5): current buffer is buffer, next buffer size is buffer_size (but not less than 1), then the next buffer size gets increased by an implementation-defined growth factor (which does not have to be integral).
  7. (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 in buffer.

🌈 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