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