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..
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..