std::regex_token_iterator<BidirIt,CharT,Traits>:: regex_token_iterator
|
regex_token_iterator
(
)
;
|
(1) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&
re,
|
(2) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&
re,
|
(3) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&
re,
|
(4) | (C++11以降) |
|
template
<
std::
size_t
N
>
regex_token_iterator
(
BidirIt a, BidirIt b,
|
(5) | (C++11以降) |
|
regex_token_iterator
(
const
regex_token_iterator
&
other
)
;
|
(6) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&&
re,
|
(7) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&&
re,
|
(8) | (C++11以降) |
|
regex_token_iterator
(
BidirIt a, BidirIt b,
const
regex_type
&&
re,
|
(9) | (C++11以降) |
|
template
<
std::
size_t
N
>
regex_token_iterator
(
BidirIt a, BidirIt b,
|
(10) | (C++11以降) |
新しい
regex_token_iterator
を構築します:
-
構築後、メンバ
regex_iteratorがシーケンス終端イテレータでない場合、メンバポインタを現在の std::sub_match のアドレスに設定する。 -
それ以外の場合(メンバ
regex_iteratorがシーケンス終端イテレータである場合)、ただし値 - 1 が submatches / submatch の値の1つである場合、 * this を範囲[a,b)を指す サフィックスイテレータ に変換する(文字列全体が非マッチサフィックスとなる)。 - それ以外の場合( - 1 が submatches のリストに含まれない場合)、 * this をシーケンス終端イテレータに変換する。
submatches 内のいずれかの値が - 1 未満の場合、動作は未定義です。
regex_iterator
および現在の
sub_match
へのメンバーポインタのコピーを含む)。
パラメータ
| a | - | LegacyBidirectionalIterator ターゲット文字シーケンスの先頭を指す |
| b | - | LegacyBidirectionalIterator ターゲット文字シーケンスの終端を指す |
| re | - | ターゲット文字シーケンスの検索に使用する正規表現 |
| submatch | - | 返されるべき部分マッチのインデックス。"0"は完全一致を表し、"-1"は非一致部分を表す(例:マッチ間の部分) |
| submatches | - | 各マッチ内で反復処理されるべき部分マッチインデックスのシーケンス。非一致フラグメント用の特別な値 - 1 を含む場合がある |
| m | - | re の動作を制御するフラグ |
例
|
このセクションは不完全です
理由: 例がありません |
不具合報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | 適用対象 | 公開時の動作 | 正しい動作 |
|---|---|---|---|
| LWG 2332 | C++11 |
一時的な
regex_token_iterator
から構築された
basic_regex
は直ちに無効化された
|
削除されたオーバーロードによりそのような構築は許可されない |