Namespaces
Variants

std::allocator<T>:: 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)
(1)
allocator ( ) throw ( ) ;
(C++11 이전)
allocator ( ) noexcept ;
(C++11 이후)
(C++20 이전)
constexpr allocator ( ) noexcept ;
(C++20 이후)
(2)
allocator ( const allocator & other ) throw ( ) ;
(C++11 이전)
allocator ( const allocator & other ) noexcept ;
(C++11 이후)
(C++20 이전)
constexpr allocator ( const allocator & other ) noexcept ;
(C++20 이후)
(3)
template < class U >
allocator ( const allocator < U > & other ) throw ( ) ;
(C++11 이전)
template < class U >
allocator ( const allocator < U > & other ) noexcept ;
(C++11 이후)
(C++20 이전)
template < class U >
constexpr allocator ( const allocator < U > & other ) noexcept ;
(C++20 이후)

기본 할당자를 생성합니다. 기본 할당자는 상태를 가지지 않으므로, 생성자들은 가시적인 효과가 없습니다.

매개변수

other - 사용할 다른 할당자