std::allocator::allocator
Материал из cppreference.com
<tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
| (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 | — | другой аллокатор, с которым произвести создание |