名前空間
変種
操作

「cpp/regex/match results/empty」の版間の差分

提供: cppreference.com
< cpp‎ | regex‎ | match results
(Translated from the English version using Google Translate)
 
 
(2人の利用者による、間の4版が非表示)
1行: 1行:
{{tr_note}}
 
 
{{cpp/regex/match_results/title | empty}}
 
{{cpp/regex/match_results/title | empty}}
 
{{cpp/regex/match_results/navbar}}
 
{{cpp/regex/match_results/navbar}}
{{ddcl | notes={{mark since c++11}} |
+
{{
 +
{{c++11 |
 
bool empty() const;
 
bool empty() const;
 +
 +
 
}}
 
}}
{{tr|マッチが成功したかどうかを確認します.|Checks whether the match was successful.}}
+
{{}}
 +
  
===パラメータ===
+
======
{{tr|(なし)|(none)}}
+
()
  
===値を返します===
+
======
{{tr|{{c|true}}たmatch_resultsオブジェクトが一致するが含まれていない場合。、{{c|false}}そうでなければ|{{c|true}} if the match_results object contains no matches., {{c|false}} otherwise}}
+
{{c|}} {{|}} {{c|}}{{c|}}
  
 
===例外===
 
===例外===
{{tr|(なし)|(none)}}
+
()
  
===複雑===
+
======
{{tr|定数.|Constant.}}
+
  
===も参照してください===
+
======
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/regex/match_results/dcl list size}}
+
{{| cpp/regex/match_results/size}}
{{dcl list end}}
+
{{end}}
 +
 
 +
 +
 +
 +
 +
 +
 +
 +

2018年4月21日 (土) 20:45時点における最新版

 
 
正規表現ライブラリ
クラス
(C++11)
アルゴリズム
イテレータ
例外
特性
定数
(C++11)
正規表現の文法
 
 
bool empty() const;
(C++11以上)
(C++20未満)
[[nodiscard]] bool empty() const;
(C++20以上)

マッチが成功したかどうかを調べます。

目次

[編集] 引数

(なし)

[編集] 戻り値

size() == 0 (*this が成功したマッチの結果を表す場合は (false、そうでなければ true)。

[編集] 例外

(なし)

[編集] 計算量

一定。

[編集] 関連項目

結果の状態を完全に確立したマッチの数を返します
(パブリックメンバ関数) [edit]