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) | |
新しい
polymorphic_allocator
を構築します。
1)
polymorphic_allocator
を構築し、基盤となるメモリリソースとして
std::
experimental
::
pmr
::
get_default_resource
(
)
の戻り値を使用します。
2,3)
polymorphic_allocator
を構築し、
other.
resource
(
)
を基盤となるメモリリソースとして使用します。
4)
polymorphic_allocator
を構築し、基盤となるメモリリソースとして
r
を使用します。このコンストラクタは
memory_resource*
からの暗黙変換を提供します。
パラメータ
| other | - |
コピー元の別の
polymorphic_allocator
|
| r | - | 使用するメモリリソースへのポインタ。nullであってはならない |
例外
4)
例外を送出しない。