std::allocator<T>::max_size
提供: cppreference.com
<tbody>
</tbody>
<tbody class="t-dcl-rev ">
</tbody><tbody>
</tbody>
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) を返します。
引数
(なし)
戻り値
サポートされている最大確保サイズ。
関連項目
[静的] |
アロケータでサポートされている最大オブジェクトサイズを返します ( std::allocator_traits<Alloc>のパブリック静的メンバ関数)
|