std::deque (an abbreviation of 'double-ended queue', pronounce 'deck') is an STL container to store elements in a double-ended queue.
- Don't use iterators into a resized std::vector or std::deque [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'