Doubly linked, cyclic list in standard library

纵饮孤独 提交于 2019-12-11 08:19:32

问题


I need doubly linked cyclic list, but a cant find it in STL containers (singly linked cyclic list too).

It may looks like that:

element 0   <->   element 1  <-> ... <-> ...

    ^                                     ^
    |                                     |
    v                                     v

element n   <->   element n-1   <->   element n-2

Can you show me what i missed? Thanks in advance.


回答1:


You haven't missed anything. There is no such container in the standard library.



来源:https://stackoverflow.com/questions/21649295/doubly-linked-cyclic-list-in-standard-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!