size_type max_size();
#include <iostream> #include<list> using namespace std; int main() { list<int> li={9,10,11}; std::cout << "size of the list is: " << li.max_size()<<std::endl; return 0; }
size of the list is: 768614336404564650