240
笔下虽有千言,胸中实无一策

C++: STL std::deque

Double ended queue

deque (usually pronounced like "deck") is an irregular acronym of double-ended queue. Double-ended queues are sequence containers with dynamic sizes that can be expanded or contracted on both ends (either its front or its back).

Use

For operations that involve frequent insertion or removals of elements at positions other than the beginning or the end, deques perform worse and have less consistent iterators and references than lists and forward lists.

Method Modified

posted @ 2017-11-15 04:50  CasperWin  阅读(173)  评论(0编辑  收藏  举报