vector向量max_size()函数运用实例

max_size函数

语法:

max_size() 返回Vector所能容纳元素的最大数量(上限)

源代码

测试代码

测试结果: