std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: inner_allocator
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
scoped_allocator_adaptor::inner_allocator
|
||||
| Non-member functions | ||||
|
(until C++20)
|
||||
| Deduction guides (C++17) |
|
定义于头文件
<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
引用
(公开成员函数) |