FYI: std:: priority_queue .
< . .
, . , < ( > , < =, > =, ==,! =).
For me, this interface was expected. I consider this a habit.
Does the operator overload reorder the queue STL is working?
No no. Not the STL queue, only your turn is for your type if your own comparator is not defined.
source
share