Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
#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.
Advertisements