Namespaces
Variants
Views
Actions

std::sub_match

From cppreference.com
< cpp‎ | regex
Revision as of 04:10, 22 July 2011 by P12 (Talk | contribs)

Template:cpp/regex/sub match/sidebar

Defined in header <regex>
template<

    class BidirectionalIterator

> class sub_match;
Template:mark c++0x 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

Template:tdcl list begin Template:tdcl list h1 Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end

Template:dcl list mem cons

Contents

Member functions

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