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

履歴 編集

function
<regex>

std::match_results::max_size(C++11)

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

処理系