名前空間
変種
操作

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

提供: cppreference.com
 
 
動的メモリ管理
スマートポインタ
(C++11)
(C++11)
(C++11)
(C++17未満)
(C++11)
アロケータ
メモリリソース
未初期化記憶域
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
 
ヘッダ <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 のすべての内側のイテレータから構成された scoped allocator への参照を返します。

[編集] 引数

(なし)

[編集] 戻り値

それ自身が std::scoped_allocator_adaptor である内側のアロケータへの参照。

[編集] 関連項目

outer_allocator の参照を取得します
(パブリックメンバ関数) [edit]