What are adapters usefull for?

Aug 1, 2014 at 12:49pm
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
Aug 1, 2014 at 2:14pm
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.