std :: size和std :: map的最大大小? [英] Maximum size of std::size and std::map?
本文介绍了std :: size和std :: map的最大大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢!
解决方案
p>通过调用 Container :: max_size()
上。如果您在编译时需要理论最大大小值,请使用 std :: numeric_limits< Container :: size_type> :: max()
。
What is maximum size of std::size and std::map? And is there a way to increase this number?
Thanks!
解决方案
You can get maximum size of every standard library container by calling Container::max_size()
on it. If you need theoretical maximum size value at compile time, use std::numeric_limits<Container::size_type>::max()
.
这篇关于std :: size和std :: map的最大大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文