regex_token_iterator::regex_token_iterator
regex_token_iterator();
regex_token_iterator(BidIt first, BidIt last,
const regex_type& re, int submatch = 0,
regex_constants::match_flag_type f = regex_constants::match_default);
regex_token_iterator(BidIt first, BidIt last,
const regex_type& re, const vector<int> submatches,
regex_constants::match_flag_type f = regex_constants::match_default);
template<std::size_t N>
regex_token_iterator(BidIt first, BidIt last,
const regex_type& re, const int (&submatches)[N],
regex_constants::match_flag_type f = regex_constants::match_default);
The first constructor constructs an end-of-sequence iterator.
The second constructor constructs an object whose stored iterator it is initialized to regex_iterator<BidIt, Elem, RXtraits<(first, last, re, f), whose stored vector subs holds exactly one integer, with value submatch, and whose stored value pos is 0. Note: the resulting object extracts the submatch identified by the index value submatch for each successful regular expression match.
The third constructor constructs an object whose stored iterator it is initialized to regex_iterator<BidIt, Elem, RXtraits<(first, last, re, f), whose stored vector subs holds a copy of the constructor argument submatches, and whose stored value pos is 0.
The fourth constructor constructs an object whose stored iterator it is initialized to regex_iterator<BidIt, Elem, RXtraits<(first, last, re, f), whose stored vector subs holds the N values pointed to by the constructor argument submatches, and whose stored value pos is 0.