Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::experi...er_resource(3)  C++ Standard Libary std::experi...er_resource(3)

NAME
       std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_re-
       source	-   std::experimental::pmr::monotonic_buffer_resource::monoto-
       nic_buffer_resource

Synopsis
	  monotonic_buffer_resource();					   (1)
       (library
									     fun-
       damentals TS)
	  explicit  monotonic_buffer_resource(memory_resource*	upstream); (2)
       (library
									     fun-
       damentals TS)
	  explicit monotonic_buffer_resource(std::size_t  initial_size);   (3)
       (library
									     fun-
       damentals TS)
	  monotonic_buffer_resource(std::size_t	 initial_size,		   (4)
       (library
	  memory_resource*					    upstream);
       fundamentals TS)
	  monotonic_buffer_resource(void*  buffer,  std::size_t		   (5)
       (library
	  buffer_size);
       fundamentals TS)
	  monotonic_buffer_resource(void*	  buffer,	   std::size_t
       (library
	  buffer_size,							   (6)
       fundamentals TS)
	  memory_resource* upstream);
	  monotonic_buffer_resource(const monotonic_buffer_resource&)  =   (7)
       (library
	  delete;
       fundamentals TS)

	  Constructs  a	monotonic_buffer_resource. The constructors not	taking
       a upstream
	  memory resource pointer uses the return value	of
	  std::experimental::pmr::get_default_resource() as the	upstream  mem-
       ory resource.

	  1-2) Sets the	current	buffer to null and the next buffer size	to an
	  implementation-defined size.
	  3-4)	Sets  the current buffer to null and the next buffer size to a
       size no smaller
	  than initial_size.
	  5-6) 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 implemen-
       tation-defined
	  growth factor	(which does not	have to	be integral).
	  7) Copy constructor is deleted.

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

http://cppreference.com		  2022.07.31	  std::experi...er_resource(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::experimental::pmr::monotonic_buffer_resource::monotonic_buffer_resource&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help