Namespaces
Variants
Views
Actions

std::regex_iterator::operator*,operator->

From cppreference.com
< cpp‎ | regex‎ | regex iterator
Revision as of 07:50, 15 January 2013 by Nate (Talk | contribs)

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

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

<td >
const value_type& operator*() const;
</td>

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

<td >
const value_type* operator->() const;
</td>

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

Extracts the current std::regex_match from a regex_iterator:

1) Returns a reference to the current std::regex_match.
2) Returns a pointer to the current std::regex_match.

Example