Comparator for use in priority queues (min-heap). More...
#include <Huffman.hpp>
Public Member Functions | |
bool | operator() (const unique_ptr< HuffmanNode > &a, const unique_ptr< HuffmanNode > &b) const |
Comparator function used to build a min-heap. | |
Comparator for use in priority queues (min-heap).
Compares two HuffmanNode objects based on frequency.
|
inline |
Comparator function used to build a min-heap.
a | Pointer to the first node. |
b | Pointer to the second node. |