Namespaces
Variants

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

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
定义于头文件 <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 引用
(公开成员函数)