Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/regex/sub match"

From cppreference.com
< cpp‎ | regex
m (Text replace - "{{tdcl list begin}} {{tdcl list h1 | Member types}}" to "===Member types=== {{tdcl list begin}}")
m (Text replace - " {{dcl list h1 | Non-member functions}}" to "{{dcl list end}} ===Non-member functions=== {{dcl list begin}}")
Line 43: Line 43:
  
 
{{dcl list h1 | Member objects}}
 
{{dcl list h1 | Member objects}}
{{dcl list mem obj | cpp/regex/sub_match/matched | defines whether this match was successful}}
+
{{dcl list mem obj | cpp/regex/sub_match/matched | defines whether this match was successful}}{{dcl list end}}
{{dcl list h1 | Non-member functions}}
+
 
 +
===Non-member functions===
 +
{{dcl list begin}}
 
{{dcl list end}}
 
{{dcl list end}}
  
 
{{todo | reason=non-member functions}}
 
{{todo | reason=non-member functions}}

Revision as of 16:11, 18 August 2011

Template:cpp/regex/sub match/sidebar

Defined in header <regex>
template<

    class BidirectionalIterator

> class sub_match;
Template:mark c++11 feature

The class template sub_match is used by the regular expression engine to denote sequences of characters matched by marked sub-expressions.

Inherits Template:cpp

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 end

Member functions

Template:dcl list mem cons
Observers
returns the length of the match, if any
(public member function)
cast to the underlying string type
(public member function)
returns the matched subsequence
(public member function)
compares matched subsequence (if any)
(public member function)

Member objects

defines whether this match was successful
(public member object)

Non-member functions