std::experimental::pmr::polymorphic_allocator<T>:: polymorphic_allocator
From cppreference.net
<
cpp
|
experimental
|
polymorphic allocator
|
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) | |
Konstruiert einen neuen
polymorphic_allocator
.
1)
Konstruiert einen
polymorphic_allocator
unter Verwendung des Rückgabewerts von
std::
experimental
::
pmr
::
get_default_resource
(
)
als zugrundeliegende Speicherressource.
2,3)
Konstruiert einen
polymorphic_allocator
unter Verwendung von
other.
resource
(
)
als zugrundeliegende Speicherressource.
4)
Konstruiert einen
polymorphic_allocator
unter Verwendung von
r
als zugrunde liegende Speicherressource. Dieser Konstruktor bietet eine implizite Konvertierung von
memory_resource*
.
Parameter
| other | - |
ein weiterer
polymorphic_allocator
zum Kopieren
|
| r | - | Zeiger auf die zu verwendende Speicherressource. Darf nicht null sein |
Ausnahmen
4)
Wirft nichts.