////////////////////////////////////////
// 2018/04/26 8:23:11
// list-max_size
// returns the maximum number of elements the list can hold
#include <iostream>
#include <list>
using namespace std;
int main(){
list<int> li(10);
cout << "size of li = " << li.size() << endl;
cout << "max_size = " << li.max_size() << endl;
return 0;
}
/*
OUTPUT:
size of li = 10
max_size = 357913941
*/
list-max_size
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:list-pop_back
下一篇:list-front
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
JAVA list基础操作
list基本操作
System List Test -
max_binlog_size
max_binlog_size
max_binlog_size -
list-size
//////////////////////...
#include ios i++