Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1008 Bytes

File metadata and controls

54 lines (40 loc) · 1008 Bytes

デストラクタ

  • regex[meta header]
  • std[meta namespace]
  • basic_regex[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
~basic_regex();

概要

正規表現オブジェクトを破棄する。

効果

正規表現オブジェクトを破棄する。

#include <iostream>
#include <regex>

int main()
{
  const char s[] = " abc ";
  std::cout << std::boolalpha;

  const std::regex re("ABC", std::regex_constants::icase);
  std::cout << std::regex_search(s, re) << std::endl;

  // スコープの終わりで破棄される。
}
  • std::regex_search[link ../regex_search.md]
  • std::regex_constants::icase[link ../regex_constants/syntax_option_type.md]

出力

true

バージョン

言語

  • C++11

処理系