Namespaces
Variants
Views
Actions

std::match_results::begin, std::match_results::cbegin

From cppreference.com
< cpp‎ | regex‎ | match results
Revision as of 12:48, 20 February 2013 by 83.237.232.234 (Talk)

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

<tr class="t-dcl ">

<td >
iterator begin();
</td>

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

<tr class="t-dcl ">

<td >
const_iterator begin() const;
</td>

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

<tr class="t-dcl ">

<td >
const_iterator cbegin() const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns an iterator to the beginning of the list of sub-matches. If match was successful, the iterator will point to the entire matched expression.

Contents

Parameters

(none)

Return value

Iterator to the first sub-match.

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant

See also

Template:cpp/regex/match results/dcl list end