class template
std::sub_match
- Header
<regex>- Scope
std- cppreference
- std::sub_match
Synopsis
template<class BidirectionalIterator>
class sub_match
: public pair<BidirectionalIterator, BidirectionalIterator>Member types
| Name | Declaration |
|---|---|
difference_typetype alias · member type | = iterator_traits<BidirectionalIterator>::difference_type |
first_typetype alias · member type | = T1 |
iteratortype alias · member type | = BidirectionalIterator |
second_typetype alias · member type | = T2 |
string_typetype alias · member type | = basic_string<value_type> |
value_typetype alias · member type | = iterator_traits<BidirectionalIterator>::value_type |
Member functions
| Name | Declaration |
|---|---|
sub_matchconstructor | sub_match() |
operator=operator · 10 overloads | pair& operator=(const pair& p) +9 more |
comparemember function · 3 overloads | int compare(const string_type& s) const +2 more |
lengthmember function | difference_type length() const |
strmember function | string_type str() const |
swapmember function · 3 overloads | void swap(pair& p) +2 more |
operator string_typeconversion function | operator string_type() const |