Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: inner_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>
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 참조를 획득합니다
(public member function)