Skip to main content

C++ Standard Library

· One min read
Hinny Tsang
Data Scientist @ Pollock Asset Management

Notes on C++ Standard Library.

Deque

Double-ended queue in C++ STL.

Unlike queue and stack, it provides random access with O(1) time complexity.

Example implementation

Hence, two pointer dereferences are required to access an element.