且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何实现C ++ std :: vector?

更新时间:2022-10-15 17:56:31

It's implemented by using an underlying array.

It's not possible to implement a std::vector<T> with a linked list because the standard guarantees the elements in the list will be held in contiguous memory.

相关阅读

技术问答最新文章