Comparator function type

will the comparator function in priority queue will always be a class??