std::allocator<T>:: allocator
From cppreference.net
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::allocator
| Member functions | ||||
|
allocator::allocator
|
||||
|
(until C++20)
|
||||
|
(C++23)
|
||||
|
(until C++20)
|
||||
|
(until C++20)
|
||||
|
(until C++20)
|
||||
| Non-member functions | ||||
|
(until C++20)
|
| (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 | - | 構築に使用する別のアロケータ |