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

FreeBSD Manual Pages

  
 
  

home | help
std::pmr::u...ol_resource(3)  C++ Standard Libary std::pmr::u...ol_resource(3)

NAME
       std::pmr::unsynchronized_pool_resource::unsynchronized_pool_resource  -
       std::pmr::unsynchronized_pool_resource::unsynchronized_pool_resource

Synopsis
	  unsynchronized_pool_resource();
       (1) (since C++17)
	  explicit  unsynchronized_pool_resource(   std::pmr::memory_resource*
       (2) (since C++17)
	  upstream );
	  explicit	       unsynchronized_pool_resource(		 const
       (3) (since C++17)
	  std::pmr::pool_options& opts );
	  unsynchronized_pool_resource(	 const	std::pmr::pool_options&	 opts,
       (4) (since C++17)
	  std::pmr::memory_resource* upstream );
	  unsynchronized_pool_resource(	  const	 unsynchronized_pool_resource&
       (5) (since C++17)
	  ) = delete;

	  Constructs a unsynchronized_pool_resource.

	  1-4) Constructs an unsynchronized_pool_resource using	the  specified
       upstream	memory
	  resource and tuned according to the specified	options. The resulting
       object holds a
	  copy	of  upstream  but  does	not own	the resource to	which upstream
       points.
	  The overloads	not taking opts	as a parameter	uses  a	 default  con-
       structed	instance of
	  pool_options	as the options.	The overloads not taking upstream as a
       parameter use
	  the return value of std::pmr::get_default_resource() as the upstream
       memory
	  resource.
	  5) Copy constructor is deleted.

Parameters
	  opts	   - a std::pmr::pool_options struct containing	the  construc-
       tor options
	  upstream - the upstream memory resource to use

Exceptions
	  1-4)	Throws	only  if  a call to the	allocate() function of the up-
       stream resource
	  throws. It is	unspecified if or under	what conditions	 such  a  call
       takes place.

http://cppreference.com		  2022.07.31	  std::pmr::u...ol_resource(3)

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

home | help