C++ STL 中的 match max_size() 函式匹配


C++ STL 中的 match max_size() 函式返回 match 容器中可以容納的 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 是 match_results 的物件。

輸出

max_size: 768614336404564650.

更新於: 30-7 月-2019

73 次瀏覽

啟動你的職業

完成課程認證

開始吧
廣告
© . All rights reserved.