Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: inner_allocator

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
ヘッダーで定義 <scoped_allocator>
inner_allocator_type & inner_allocator ( ) noexcept ;
(1) (C++11以降)
const inner_allocator_type & inner_allocator ( ) const noexcept ;
(2) (C++11以降)

この scoped_allocator_adaptor の宣言に使用された内部アロケータへの参照を取得します。

sizeof... ( InnerAllocs ) == 0 の場合、つまり内部アロケータが宣言されていない場合、 * this を返します。それ以外の場合、 std:: scoped_allocator_adaptor < InnerAllocs... > への参照を返します。これは、 * this のすべての内部アロケータで構成されるスコープ付きアロケータであり、最初の内部アロケータが外部アロケータとなります。

パラメータ

(なし)

戻り値

内部アロケータへの参照。これはそれ自体が std::scoped_allocator_adaptor です。

関連項目

outer_allocator 参照を取得する
(公開メンバ関数)