std::allocator_traits<Alloc>::max_size
提供: cppreference.com
< cpp | memory | allocator traits
ヘッダ <memory> で定義
|
||
static size_type max_size( const Alloc& a ) noexcept; |
(C++11以上) | |
可能であれば、
a.max_size()
を呼ぶことによって、アロケータ a
から理論上可能な最大確保サイズを取得します。
上記が可能でなければ (a
がメンバ関数 max_size()
を持たないなど)、 std::numeric_limits<size_type>::max()
(C++17未満)std::numeric_limits<size_type>::max() / sizeof(value_type) (C++17以上) を返します。
[編集] 引数
(なし)
[編集] 戻り値
論理上の最大確保サイズ。
[編集] 関連項目
(C++17で非推奨)(C++20で削除) |
サポートされている最大確保サイズを返します ( std::allocator<T> のパブリックメンバ関数)
|