cpp/regex/match results/max size

Returns the maximum number of submatches the type is able to hold due to system or library implementation limitations, i.e.  for the largest number of submatches.

Parameters
(none)

Return value
Maximum number of submatches

Complexity
Constant.