ankit_gupta_'s blog

By ankit_gupta_, history, 5 years ago, In English

struct compare { bool operator()(node l, node r) { .... } };

We use above struct in the priority queue to define custom compare function.

Why () operator overloading works?

Thanks in advance..

  • Vote: I like it
  • +3
  • Vote: I do not like it