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 - 構築に使用する別のアロケータ