The smatch::max_size() is a built-in function in C++ STL which returns the maximum number of elements in the match_results object that can be held by the smatch container.
Parameters: This function does not accept any parameters.
Return value: This function returns the maximum number of elements that can fit into the smatch container.
Below programs illustrate the above function:
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- multimap maxsize() in C++ STL
- smatch | Regex (Regular Expressions) in C++
- Difference between user defined function and library function in C/C++
- Function Overloading vs Function Overriding in C++
- How to call some function before main() function in C++?
- How to call function within function in C or C++
- What happens when a virtual function is called inside a non-virtual function in C++
- Difference between Virtual function and Pure virtual function in C++
- div() function in C++
- log() function in C++
- exp() function C++
- fma() function in C++
- valarray abs() function in C++
- valarray end() function in C++
- valarray cos() function in C++
- valarray sin() function in C++
- valarray exp() function in C++
- map rbegin() function in C++ STL
- isfinite() function in C++
- max() function for valarray in C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.