Namespaces
Variants
Views
Actions

Talk:cpp/container/priority queue

From cppreference.com

Isn't it quite misleading that it reads that "top: access the top element" vs "pop: remove first element", but first and top coincide here? 78.52.126.195 07:39, 2 February 2014 (PST)

Thanks for noticing, I've fixed this issue. --P12 13:04, 2 February 2014 (PST)

The comparer is confusing, maybe there should be clarification how it should look when you want the queue to minimize vs maximize. Also a usage example would help a lot.

Touched up the description, agree that small usage examples could be helpful. For now, std::make_heap etc examples are pretty much the same thing. --Cubbi (talk) 12:17, 11 December 2014 (PST)