This code made me think. How does priority_queue compare elements?
Originally Posted by anon
prints 13 for me. I was wondering if it just looked at the first element of the vector. What exactly is happening? I see it uses a template function
std::vector<std::vector<int> > v;
std::priority_queue<std::vector<int> > pq;
std::cout << pq.top() << std::endl;
but what is Container::value_type?
class Compare = less<typename Container::value_type>