Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1001 Bytes

File metadata and controls

43 lines (34 loc) · 1001 Bytes

コンストラクタ

  • regex[meta header]
  • std[meta namespace]
  • regex_error[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
explicit regex_error(regex_constants::error_type ecode);
  • regex_constants::error_type[link /reference/regex/regex_constants/error_type.md]

概要

エラーコードを受け取ってオブジェクトを構築する。

#include <regex>

int main()
{
  // 開き丸カッコに対応した閉じ丸カッコがない、というエラーコードの例外を送出
  throw std::regex_error(std::regex_constants::error_paren);
}
  • std::regex_constants::error_paren[link /reference/regex/regex_constants/error_type.md]

出力

Segmentation fault

バージョン

言語

  • C++11

処理系