match max_size() function in C++ STL

C++Server Side ProgrammingProgramming

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

 Live Demo

#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.
raja
Published on 02-Apr-2019 17:54:59
Advertisements