home | help
std::pmr::pool_options(3)      C++ Standard Libary     std::pmr::pool_options(3)

NAME
     std::pmr::pool_options - std::pmr::pool_options

Synopsis
	Defined in header <memory_resource>
	struct pool_options;		     (since C++17)

	std::pmr::pool_options	is  a  set  of	constructor options for pool re-
     sources including
	std::pmr::synchronized_pool_resource	  and	    std::pmr::unsynchro-
     nized_pool_resource.

	Data members

	Member				      Meaning
					      The  maximum number of blocks that
     will be
					      allocated at  once  from	the  up-
     stream
					      std::pmr::memory_resource  to  re-
     plenish the
					      pool.    If    the    value     of
     max_blocks_per_chunk is
	std::size_t max_blocks_per_chunk;     zero or is greater than an
					      implementation-defined limit, that
     limit is
					      used  instead.  The implementation
     may choose to
					      use a smaller value than is speci-
     fied in this
					      field and may use different values
     for
					      different pools.
					      The largest allocation  size  that
     is required
					      to  be fulfilled using the pooling
     mechanism.
					      Attempts	to  allocate  a   single
     block larger
					      than  this threshold will be allo-
     cated directly
	std::size_t			      from the	upstream  std::pmr::mem-
     ory_resource.
	largest_required_pool_block;	       If largest_required_pool_block is
     zero or is
					      greater than an implementation-de-
     fined limit,
					      that limit is  used  instead.  The
     implementation
					      may  choose a pass-through thresh-
     old larger
					      than specified in this field.

See also
	synchronized_pool_resource   a thread-safe std::pmr::memory_resource for
     managing
	(C++17) 		     allocations in  pools  of	different  block
     sizes
				     (class)
	unsynchronized_pool_resource  a  thread-unsafe std::pmr::memory_resource
     for managing
	(C++17) 		     allocations in  pools  of	different  block
     sizes
				     (class)

http://cppreference.com 	   2024.06.10	       std::pmr::pool_options(3)

home | help