.TH "std::sub_match< _BiIter >" 3cxx "Tue Feb 2 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::sub_match< _BiIter > .SH SYNOPSIS .br .PP .PP Inherits \fBstd::pair< _BiIter, _BiIter >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "using \fB_PCCFP\fP = _PCC::value||!\fBis_same\fP< _BiIter, _U2 >::value, _BiIter, _BiIter >" .br .ti -1c .RI "using \fB_PCCP\fP = _PCC< true, _BiIter, _BiIter >" .br .ti -1c .RI "typedef __iter_traits::difference_type \fBdifference_type\fP" .br .ti -1c .RI "typedef _BiIter \fBfirst_type\fP" .br .ti -1c .RI "typedef _BiIter \fBiterator\fP" .br .ti -1c .RI "typedef _BiIter \fBsecond_type\fP" .br .RI "\fCfirst_type\fP is the first bound type " .ti -1c .RI "typedef \fBstd::basic_string\fP< value_type > \fBstring_type\fP" .br .ti -1c .RI "typedef __iter_traits::value_type \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "int \fBcompare\fP (const \fBstring_type\fP &__s) const" .br .RI "Compares this sub_match to a string\&. " .ti -1c .RI "int \fBcompare\fP (const \fBsub_match\fP &__s) const" .br .RI "Compares this and another matched sequence\&. " .ti -1c .RI "int \fBcompare\fP (const value_type *__s) const" .br .RI "Compares this sub_match to a C-style string\&. " .ti -1c .RI "difference_type \fBlength\fP () const" .br .ti -1c .RI "\fBoperator string_type\fP () const" .br .RI "Gets the matching sequence as a string\&. " .ti -1c .RI "\fBstring_type\fP \fBstr\fP () const" .br .RI "Gets the matching sequence as a string\&. " .ti -1c .RI "void \fBswap\fP (\fBpair\fP &__p) noexcept(__and_< __is_nothrow_swappable< _BiIter >, __is_nothrow_swappable< _BiIter >>::value)" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_BiIter \fBfirst\fP" .br .RI "\fCsecond_type\fP is the second bound type " .ti -1c .RI "bool \fBmatched\fP" .br .ti -1c .RI "_BiIter \fBsecond\fP" .br .RI "\fCfirst\fP is a copy of the first object " .in -1c .SH "Detailed Description" .PP .SS "template .br class std::sub_match< _BiIter >" A sequence of characters matched by a particular marked sub-expression\&. .PP An object of this class is essentially a pair of iterators marking a matched subexpression within a regular expression pattern match\&. Such objects can be converted to and compared with std::basic_string objects of a similar base character type as the pattern matched by the regular expression\&. .PP The iterators that make up the pair are the usual half-open interval referencing the actual original pattern matched\&. .PP Definition at line 864 of file regex\&.h\&. .SH "Member Typedef Documentation" .PP .SS "using \fBstd::pair\fP< _BiIter , _BiIter >::\fB_PCCFP\fP = _PCC::value || !\fBis_same\fP<_BiIter , _U2>::value, _BiIter , _BiIter >\fC [inherited]\fP" There is also a templated copy ctor for the \fCpair\fP class itself\&. .PP Definition at line 281 of file stl_pair\&.h\&. .SS "using \fBstd::pair\fP< _BiIter , _BiIter >::\fB_PCCP\fP = _PCC\fC [inherited]\fP" Two objects may be passed to a \fCpair\fP constructor to be copied\&. .PP Definition at line 252 of file stl_pair\&.h\&. .SS "typedef _BiIter \fBstd::pair\fP< _BiIter , _BiIter >::\fBsecond_type\fP\fC [inherited]\fP" .PP \fCfirst_type\fP is the first bound type .PP Definition at line 212 of file stl_pair\&.h\&. .SH "Member Data Documentation" .PP .SS "_BiIter \fBstd::pair\fP< _BiIter , _BiIter >::first\fC [inherited]\fP" .PP \fCsecond_type\fP is the second bound type .PP Definition at line 214 of file stl_pair\&.h\&. .SS "_BiIter \fBstd::pair\fP< _BiIter , _BiIter >::second\fC [inherited]\fP" .PP \fCfirst\fP is a copy of the first object .PP Definition at line 215 of file stl_pair\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.