Difference between revisions of "cpp/regex/match results"
m (+op==) |
m (er, that was tfun. Also, non-member swap) |
||
Line 77: | Line 77: | ||
===Non-member functions=== | ===Non-member functions=== | ||
{{dcl list begin}} | {{dcl list begin}} | ||
− | {{dcl list | + | {{dcl list | cpp/regex/match_results/operator_cmp | title=operator==<br>operator!= | lexicographically compares the values in the two match result |
+ | }} | ||
{{dcl list end}} | {{dcl list end}} |
Revision as of 13:27, 21 May 2012
Template:cpp/regex/match results/sidebar
Defined in header <regex>
|
||
template< class BidirectionalIterator, |
(since C++11) | |
The class template std::match_results holds a collection of character sequences that represent the result of a regular expression match.
This is a specialized allocator-aware container. It can only be default created or modified by passing to the std::regex_search() or std::regex_match() algorithms.
The first sub_match (index 0) contained in a match_result always represents the full match within a target sequence made by a regex, and subsequent sub_matches represent sub-expression matches corresponding in sequence to the left parenthesis delimiting the sub-expression in the regex.
Several specializations for common character sequence types are provided:
Template:tdcl list begin Template:tdcl list header Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end
Member functions
Non-member functions
lexicographically compares the values in the two match result (function template) | |
specializes the Template:cpp/ltf algorithm (function template) |