std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::inner_allocator
提供: cppreference.com
< cpp | memory | scoped allocator adaptor
ヘッダ <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 の参照を取得します (パブリックメンバ関数) |