match max_size() function in C++ STL


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.

Updated on: 30-Jul-2019

69 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements