Learning C++: The STL and the deque Class
Published in
5 min readApr 11, 2020
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.