std::regex_token_iterator<BidirIt,CharT,Traits>::regex_token_iterator
提供: cppreference.com
<tbody>
</tbody>
regex_token_iterator(); |
(1) | (C++11以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, int submatch = 0, std::regex_constants::match_flag_type m = std::regex_constants::match_default ); |
(2) | (C++11以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, const std::vector<int>& submatches, std::regex_constants::match_flag_type m = std::regex_constants::match_default ); |
(3) | (C++11以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, std::initializer_list<int> submatches, std::regex_constants::match_flag_type m = std::regex_constants::match_default ); |
(4) | (C++11以上) |
template <std::size_t N> regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, const int (&submatches)[N], std::regex_constants::match_flag_type m = std::regex_constants::match_default ); |
(5) | (C++11以上) |
regex_token_iterator( const regex_token_iterator& other ); |
(6) | (C++11以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type&& re, int submatch = 0, std::regex_constants::match_flag_type m = std::regex_constants::match_default ) = delete; |
(7) | (C++14以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type&& re, const std::vector<int>& submatches, std::regex_constants::match_flag_type m = std::regex_constants::match_default ) = delete; |
(8) | (C++14以上) |
regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type&& re, std::initializer_list<int> submatches, std::regex_constants::match_flag_type m = std::regex_constants::match_default ) = delete; |
(9) | (C++14以上) |
template <std::size_t N> regex_token_iterator( BidirectionalIterator a, BidirectionalIterator b, const regex_type&& re, const int (&submatches)[N], std::regex_constants::match_flag_type m = std::regex_constants::match_default ) = delete; |
(10) | (C++14以上) |
新しい regex_token_iterator を構築します。
1) デフォルトコンストラクタ。 終端イテレータを構築します。
2-5) まず、
submatches または submatch 引数からイテレータ内のメンバ list に要求される部分マッチのリストをコピーし、 a、b、re および m を4引数のコンストラクタに渡すことによってメンバの std::regex_iterator を構築し (このコンストラクタは std::regex_search の最初の呼び出しを行います)、部分マッチの内部カウンタをゼロに設定します。
- 構築後、メンバの
regex_iteratorが終端イテレータでなければ、メンバのポインタを現在の std::sub_match のアドレスに設定します。 - そうでなく (メンバの