• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <regex>

    std::match_results::max_size

    size_type max_size() const;
    

    概要

    *this に格納できるサブマッチの最大数を返す。

    戻り値

    *this に格納できるサブマッチの最大数

    備考

    • 本メンバ関数は ready() == false でも呼び出すことが可能である。

    #include <iostream>
    #include <regex>
    
    int main()
    {
      std::cmatch m;
      std::cout << "max_size = " << m.max_size() << std::endl;
    }
    

    出力例

    max_size = 768614336404564650
    

    バージョン

    言語

    • C++11

    処理系

    • Clang: 3.0 , 3.1 , 3.2 , 3.3 , 3.4 , 3.5 , 3.6
    • GCC: 4.9.0 , 4.9.1 , 5.0.0
    • ICC: ??
    • Visual C++: ??