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
(
)
;
|
(bis C++11) | |
|
allocator
(
)
noexcept
;
|
(seit C++11)
(bis C++20) |
|
|
constexpr
allocator
(
)
noexcept
;
|
(seit C++20) | |
| (2) | ||
|
allocator
(
const
allocator
&
other
)
throw
(
)
;
|
(bis C++11) | |
|
allocator
(
const
allocator
&
other
)
noexcept
;
|
(seit C++11)
(bis C++20) |
|
|
constexpr
allocator
(
const
allocator
&
other
)
noexcept
;
|
(seit C++20) | |
| (3) | ||
|
template
<
class
U
>
allocator ( const allocator < U > & other ) throw ( ) ; |
(bis C++11) | |
|
template
<
class
U
>
allocator ( const allocator < U > & other ) noexcept ; |
(seit C++11)
(bis C++20) |
|
|
template
<
class
U
>
constexpr allocator ( const allocator < U > & other ) noexcept ; |
(seit C++20) | |
Konstruiert den Standard-Allokator. Da der Standard-Allokator zustandslos ist, haben die Konstruktoren keine sichtbare Auswirkung.
Parameter
| other | - | ein anderer Allokator zum Konstruieren |