cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What are adapters usefull for?
What are adapters usefull for?
Aug 1, 2014 at 12:49pm UTC
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 UTC
keskiverto
(10402)
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.