Double-ended queue
/learn @StephenCleary/Deque
Quality Score
Category
Supported Platforms
Tags
A double-ended queue, which provides O(1) indexed access, O(1) removals from the front and back, amortized O(1) insertions to the front and back, and O(N) insertions and removals anywhere else.
StephenCleary
View profile
Languages
Security Score
Audited on Nov 1, 2025