February 2022
Beginner
848 pages
22h 40m
English
The Standard Template Library (STL) features containers that adapt other containers to simulate stack and queue behavior. Containers that internally use other containers and present a distinct behavior are called adaptive containers.
In this lesson, you learn
■ The behavioral characteristics of stacks and queues
■ Using the STL stack
■ Using the STL queue
■ Using the STL priority_queue
Stacks and queues are like arrays or lists but present restrictions on how elements are inserted, accessed, and removed. Their behavioral characteristics are decided exactly by the placement of elements on insertion or the position of the element that ...
Read now
Unlock full access