Vector storage in C++

前端 未结 5 596
轮回少年
轮回少年 2021-02-05 01:08

I wish to store a large vector of d-dimensional points (d fixed and small: <10).

If I define a Point as vector, I think a v

5条回答
  •  半阙折子戏
    2021-02-05 01:31

    For the said value of d (<10), defining Point as vector will almost double the full memory usage by std::vector and will bring almost no advantage.

提交回复
热议问题