标签: c++ vector
向量中可以存储的最大float元素数是多少?在C ++中,我使用的是Ubuntu 14平台,Core i7(4个物理内核)和8GB ram
答案 0 :(得分:1)
实现支持的向量的理论最大大小由函数std::vector::max_size
std::vector::max_size
http://en.cppreference.com/w/cpp/container/vector/max_size
在你的系统内存耗尽之前你可以在这个载体中分配多少,没有可预测的答案。