GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::pmr::polymorphic_allocator::polymorphic_allocator(3) C++ Standard Libary std::pmr::polymorphic_allocator::polymorphic_allocator(3)

std::pmr::polymorphic_allocator::polymorphic_allocator - std::pmr::polymorphic_allocator::polymorphic_allocator


polymorphic_allocator() noexcept; (1)
polymorphic_allocator( const polymorphic_allocator& other ) = default; (2)
template< class U > (3)
polymorphic_allocator( const polymorphic_allocator<U>& other ) noexcept;
polymorphic_allocator( std::pmr::memory_resource* r ); (4)


Constructs a new polymorphic_allocator.


1) Constructs a polymorphic_allocator using the return value of
std::pmr::get_default_resource() as the underlying memory resource.
2-3) Constructs a polymorphic_allocator using other.resource() as the underlying
memory resource.
4) Constructs a polymorphic_allocator using r as the underlying memory resource.
This constructor provides an implicit conversion from std::pmr::memory_resource*.


other - another polymorphic_allocator to copy from
r - pointer to the memory resource to use. May not be null.


4) Throws nothing.


Copying a container using a polymorphic_allocator will not call the allocator's copy
constructor. Instead, the new container will use the return value of
select_on_container_copy_construction (a default-constructed polymorphic_allocator)
as its allocator.


Create a new polymorphic_allocator for use by
select_on_container_copy_construction a container's copy constructor
(public member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.