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)
Definiert im Header <scoped_allocator>
outer_allocator_type & outer_allocator ( ) noexcept ;
(1) (seit C++11)
const outer_allocator_type & outer_allocator ( ) const noexcept ;
(2) (seit C++11)

Erhält eine Referenz auf den externen Allokator, der zur Deklaration dieser Klasse verwendet wird.

1) Gibt static_cast < OuterAlloc & > ( * this ) zurück.
2) Gibt static_cast < const OuterAlloc & > ( * this ) zurück.

Parameter

(keine)

Rückgabewert

Eine Referenz auf OuterAlloc .

Siehe auch

erhält eine inner_allocator Referenz
(öffentliche Mitgliedsfunktion)