名前空間
変種
操作

std::allocator<T>::allocator

提供: cppreference.com
< cpp‎ | memory‎ | allocator
 
 
動的メモリ管理
未初期化記憶域
ガベージコレクションサポート
その他
(C++20)
(C++11)
(C++11)
C のライブラリ
低水準のメモリ管理
 
std::allocator
メンバ関数
allocator::allocator
(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 - 構築に使用する別のアロケータ
close