What are adapters usefull for?

closed account (EwCjE3v7)
I`m talking about container adapters. The std::stalk, queue and priority_queue.

Like could someone give me examples of when they come in useful.

Thank you
Some algorithms use such concepts.

Towers of Hanoi. There you move pieces between stacks.

Server that has a pool of workers. Server receives jobs from clients. Jobs wait in queue for workers to finish previous jobs. Free workers might be in a queue too.
Topic archived. No new replies allowed.