Difference between revisions of "cpp/regex/match results/begin"
From cppreference.com
< cpp | regex | match results
m (→See also: langlinks) |
Andreas Krug (Talk | contribs) m (fmt, .) |
||
Line 1: | Line 1: | ||
− | {{cpp/regex/match_results/title | begin | cbegin}} | + | {{cpp/regex/match_results/title|begin|cbegin}} |
{{cpp/regex/match_results/navbar}} | {{cpp/regex/match_results/navbar}} | ||
{{dcl begin}} | {{dcl begin}} | ||
− | {{dcl | since=c++11 | | + | {{dcl|since=c++11| |
iterator begin() noexcept; | iterator begin() noexcept; | ||
}} | }} | ||
− | {{dcl | since=c++11 | | + | {{dcl|since=c++11| |
const_iterator begin() const noexcept; | const_iterator begin() const noexcept; | ||
}} | }} | ||
− | {{dcl | since=c++11 | | + | {{dcl|since=c++11| |
const_iterator cbegin() const noexcept; | const_iterator cbegin() const noexcept; | ||
}} | }} | ||
Line 22: | Line 22: | ||
===Complexity=== | ===Complexity=== | ||
− | Constant | + | Constant |
===See also=== | ===See also=== | ||
− | |||
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/regex/match_results/dsc end}} | + | {{dsc inc|cpp/regex/match_results/dsc end}} |
{{dsc end}} | {{dsc end}} | ||
{{langlinks|de|es|fr|it|ja|pt|ru|zh}} | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} |
Latest revision as of 00:13, 21 October 2023
iterator begin() noexcept; |
(since C++11) | |
const_iterator begin() const noexcept; |
(since C++11) | |
const_iterator cbegin() const noexcept; |
(since C++11) | |
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 |
[edit] Parameters
(none)
[edit] Return value
Iterator to the first sub-match.
[edit] Complexity
Constant.
[edit] See also
returns iterator to the end of the list of sub-matches (public member function) |