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
(публичная функция-член)