What is the maximum size of an vector<>::maxsize()?

前端 未结 3 1462
庸人自扰
庸人自扰 2020-12-21 18:28

Please specify the range of vector list ....

I want to store million of records in vector<>.

I have to copy Millions of records from one vector<> to an

3条回答
  •  一个人的身影
    2020-12-21 18:47

    I test it in my pc. Windows 7 32bit. The result is 2^32/sizeof(CPoint3D)-1=268435455, sizeof(CPoint3D) is 16. But max_size is nothing. After it, m_point1.reserve(25641355), "Out of Memory" is showed.

    25641355 < 268435455

提交回复
热议问题