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)
헤더 파일에 정의됨 <scoped_allocator>
scoped_allocator_adaptor select_on_container_copy_construction ( ) const ;
(C++11부터)

std::scoped_allocator_adaptor 의 새 인스턴스를 생성합니다. 여기서 외부 할당자 기본 클래스와 각 내부 할당자 하위 객체는 std:: allocator_traits < A > :: select_on_container_copy_construction ( ) 를 호출하여 얻습니다.

매개변수

(없음)

반환값

새로운 std::scoped_allocator_adaptor 객체로, 올바르게 복사된 할당자들로부터 생성됩니다.

참고 항목

표준 컨테이너 복사 후 사용할 할당자를 획득함
( std::allocator_traits<Alloc> 의 public static 멤버 함수)