std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::outer_allocator
来自cppreference.com
内存管理库
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::scoped_allocator_adaptor
| 成员函数 | ||||
| 非成员函数 | ||||
(C++20 前) | ||||
| 推导指引(C++17) |
| 在标头 <scoped_allocator> 定义
|
||
outer_allocator_type& outer_allocator() noexcept;
|
(1) | (C++11 起) |
const outer_allocator_type& outer_allocator() const noexcept;
|
(2) | (C++11 起) |
获得到用于声明此类的外层分配器的引用。
1) 返回
static_cast<OuterAlloc&>(*this)。2) 返回
static_cast<const OuterAlloc&>(*this)。参数
(无)
返回值
到 OuterAlloc 的引用。
参阅
获得一个 inner_allocator 引用 (公开成员函数) [编辑] |
