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 的所有內層分配器組成的有作用域分配器,其中第一個內層分配器成為外層分配器。
[編輯] 引數
(無)
[編輯] 返回值
到內層分配器的引用,它本身也是一個 std::scoped_allocator_adaptor
。
[編輯] 參閱
獲得一個 outer_allocator 引用(公開成員函式) |