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

NAME
     std::pmr::synchronized_pool_resource::synchronized_pool_resource	       -
     std::pmr::synchronized_pool_resource::synchronized_pool_resource

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

	Constructs a synchronized_pool_resource.

	1-4)  Constructs  a  synchronized_pool_resource  using the specified up-
     stream memory
	resource and tuned according to the specified options. The resulting ob-
     ject 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  constructed
     instance of
	pool_options  as the options. The overloads not taking upstream as a pa-
     rameter uses
	the return value of std::pmr::get_default_resource as the upstream  mem-
     ory resource.
	5) Copy constructor is deleted.

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

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

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

home | help