I need to implement a priority queue for a project, but the STL\'s priority_queue
is not indicated since we need to iterate over all elements and remove them random
I would follow the example set by some of the other container adapters in the standard library use composition and make the type of the underlying container a template parameter. Though since it is a school project that might be too much flexibility. You might start by using composition with one of the existing Containers and build from there if necessary.