Learning C++: The STL and the deque Class

Mike McMillan
Level Up Coding
Published in
5 min readApr 11, 2020

--

Photo by Aditya Chinchure on Unsplash

A deque (pronounced like a “deck” of cards) is a double-sided queue where you can add and remove data from either the front of the container or the back of the container. Deques are not a very commonly used container but does have its purposes for a few specialized applications. A deque can be a preferred container when the application requires adding and removing data from both ends of the container.

--

--

Mike McMillan writes about computer programming and running. See more of his writing and courses at https://mmcmillan.gumroad.com.