Namespaces
Variants

std::experimental::pmr::polymorphic_allocator<T>:: polymorphic_allocator

From cppreference.net
polymorphic_allocator ( ) noexcept ;
(1)
polymorphic_allocator ( const polymorphic_allocator & other ) noexcept = default ;
(2)
template < class U >
polymorphic_allocator ( const polymorphic_allocator < U > & other ) noexcept ;
(3)
polymorphic_allocator ( memory_resource * r ) ;
(4)

Construit un nouveau polymorphic_allocator .

1) Construit un polymorphic_allocator en utilisant la valeur de retour de std:: experimental :: pmr :: get_default_resource ( ) comme ressource mémoire sous-jacente.
2,3) Construit un polymorphic_allocator en utilisant other. resource ( ) comme ressource mémoire sous-jacente.
4) Construit un polymorphic_allocator en utilisant r comme ressource mémoire sous-jacente. Ce constructeur fournit une conversion implicite depuis memory_resource* .

Paramètres

other - un autre polymorphic_allocator à copier
r - pointeur vers la ressource mémoire à utiliser. Ne peut pas être nul

Exceptions

4) Ne lance rien.