std::allocator<T>::max_size
ja.cppreference.net より
size_type max_size() const throw();
|
(C++11まで) | |
size_type max_size() const noexcept;
|
(C++11以降) (C++17で非推奨) (C++20で削除) |
|
n の理論的に可能な最大値を返します。その値に対して allocate(n, 0) の呼び出しが成功する可能性があります。
ほとんどの実装では、この関数は std::numeric_limits<size_type>::max() / sizeof(value_type) を返します。
戻り値
サポートされる最大割り当てサイズ。
関連項目
|
[static]
|
アロケータがサポートする最大オブジェクトサイズを返す
(
std::allocator_traits<Alloc>
の公開静的メンバ関数)
|