ฟังก์ชัน match max_size() ใน C++ STL จะคืนค่าจำนวนองค์ประกอบสูงสุดในออบเจกต์ match_results ที่คอนเทนเนอร์จับคู่สามารถเก็บไว้ได้
ฟังก์ชันนี้ไม่ยอมรับพารามิเตอร์
โค้ดตัวอย่าง
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
match_results<float*> m;
cout << "max_size: " <<
m.max_size() << endl;
return 0;
} m เป็นเป้าหมายของการจับคู่_results
ผลลัพธ์
max_size: 768614336404564650.