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 | - | 사용할 다른 할당자 |