The Deque class which is an abbreviation for double-ended queue, is a sequential container that functions like a queue (or a stack) at both ends.