Namespaces
Variants

std::experimental::pmr::polymorphic_allocator<T>:: polymorphic_allocator

From cppreference.net
polymorphic_allocator ( ) noexcept ;
(1)
polymorphic_allocator ( const polymorphic_allocator & other ) noexcept = default ;
(2)
template < class U >
polymorphic_allocator ( const polymorphic_allocator < U > & other ) noexcept ;
(3)
polymorphic_allocator ( memory_resource * r ) ;
(4)

새로운 polymorphic_allocator 를 생성합니다.

1) polymorphic_allocator 를 생성하며, 기본 메모리 리소스로 std:: experimental :: pmr :: get_default_resource ( ) 의 반환값을 사용합니다.
2,3) polymorphic_allocator 를 생성하며, 기본 메모리 리소스로 other. resource ( ) 를 사용합니다.
4) polymorphic_allocator r 를 기본 메모리 리소스로 사용하여 생성합니다. 이 생성자는 memory_resource* 에서의 암시적 변환을 제공합니다.

매개변수

other - 복사할 다른 polymorphic_allocator
r - 사용할 메모리 리소스에 대한 포인터. null이 아니어야 함

예외

4) 아무것도 throw하지 않습니다.