30
Regular expressions library
[re]
30.10
Class template
match_results
[re.results]
30.10.3
Size
[re.results.size]
🔗
size_type size
(
)
const
;
1
#
Returns:
One plus the number of marked sub-expressions in the regular expression that was matched if
*
this
represents the result of a successful match
.
Otherwise returns
0
.
[
Note
:
The state of a
match_results
object can be modified only by passing that object to
regex_match
or
regex_search
.
Subclauses
[re.alg.match]
and
[re.alg.search]
specify the effects of those algorithms on their
match_results
arguments
.
—
end note
]
🔗
size_type max_size
(
)
const
;
2
#
Returns:
The maximum number of
sub_match
elements that can be stored in
*
this
.
🔗
[
[
nodiscard
]
]
bool
empty
(
)
const
;
3
#
Returns:
size
(
)
=
=
0
.