Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | regex
m (Text replace - "{{dcl list begin}} {{dcl list h1 | Member functions}}" to "===Member functions=== {{dcl list begin}}")
m (Text replace - "{{tdcl list begin}} {{tdcl list h1 | Member types}}" to "===Member types=== {{tdcl list begin}}")
Line 23: Line 23:
 
{{tdcl list end}}
 
{{tdcl list end}}
  
 +
===Member types===
 
{{tdcl list begin}}
 
{{tdcl list begin}}
{{tdcl list h1 | Member types}}
 
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list hitem | Member type | Definition}}
 
{{tdcl list item | {{tt|iterator}} | {{cpp|BidirectionalIterator}}}}
 
{{tdcl list item | {{tt|iterator}} | {{cpp|BidirectionalIterator}}}}

Revision as of 16:08, 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