STL deque容器不支持通过指针偏移读取元素(cplusplus.com意见反馈)
问题反馈过程
http://www.cplusplus.com 是介绍标准c++语言的一个权威网站,在其对deque容器的介绍中,有这样一句(反馈后现已更改):
But, unlike vectors, deques are not guaranteed to store all its elements in contiguous storage locations, thus not allowing direct access by offsetting pointers to elements.
意思是deque容器与vector容器不同,它不保证将元素的存储在连续的内存区域内,所[……]