(C++) std::deque

January 10, 2018 · View on GitHub

 

 

 

 

 

(C++) std::deque

 

std::deque (an abbreviation of 'double-ended queue', pronounce 'deck') is an STL container to store elements in a double-ended queue.

 

 

 

 

 

Example

 

 

 

 

 

 

Advice

 

 

 

 

 

 

References

 

  1. Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 31.6. Advice. page 924: '[21] Don't use iterators into a resized vector or deque'