std::allocator<T>::allocator
来自cppreference.com
内存管理库
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::allocator
| 成员函数 | ||||
(C++20 前) | ||||
(C++23) | ||||
(C++20 前) | ||||
(C++20 前) | ||||
(C++20 前) | ||||
| 非成员函数 | ||||
(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 | - | 用以构造的另一 allocator
|
