The match max_size() function in C++ STL returns the maximum number of elements in the match_results object that can be held by the match container.
This function does not accept a parameter.
Example Code
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
match_results<float*> m;
cout << "max_size: " <<
m.max_size() << endl;
return 0;
}Here m is an object of match_results.
Output
max_size: 768614336404564650.