On this page
std::pmr::unsynchronized_pool_resource::unsynchronized_pool_resource
|
(1) | (since C++17) |
|
(2) | (since C++17) |
|
(3) | (since C++17) |
|
(4) | (since C++17) |
|
(5) | (since C++17) |
Constructs an unsynchronized_pool_resource.
1-4) Constructs an
The overloads not taking
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 constructed 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 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.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/memory/unsynchronized_pool_resource/unsynchronized_pool_resource