Data structures · Queues and deques

Which structure fits?

Stacks, queues and deques store the same items; the order a task needs them back in decides which one to use.