Namespaces
Variants

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

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>
scoped_allocator_adaptor select_on_container_copy_construction ( ) const ;
(seit C++11)

Erstellt eine neue Instanz von std::scoped_allocator_adaptor , wobei die äußere Allokator-Basisklasse und jedes innere Allokator-Subobjekt durch Aufruf von std:: allocator_traits < A > :: select_on_container_copy_construction ( ) erhalten werden.

Parameter

(keine)

Rückgabewert

Ein neues std::scoped_allocator_adaptor -Objekt, konstruiert aus korrekt kopierten Allokatoren.

Siehe auch

Ermittelt den Allokator, der nach dem Kopieren eines Standardcontainers verwendet werden soll
(öffentliche statische Elementfunktion von std::allocator_traits<Alloc> )