Namespaces
Variants
Views
Actions

std::regex_token_iterator::regex_token_iterator

From cppreference.com
< cpp‎ | regex‎ | regex token iterator
Revision as of 17:38, 14 January 2013 by Nate (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
regex_token_iterator();
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
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);
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
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);
</td>

<td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
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);
</td>

<td > (4) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
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);
</td>

<td > (5) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
regex_token_iterator(const regex_token_iterator&);
</td>

<td > (6) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Constructs a new regex_token_iterator:

1) Default constructor. Constructs an end-of-sequence iterator.

Parameters

a - BidirectionalIterator to the beginning of the target character sequence
b - BidirectionalIterator to the end of the targe character sequence
re - regular expression used to search the target character sequence
m - flags that govern the behavior of re

Example