I want to turn a vector of structures in a heap. I'm trying to use make_heap function, from STL which have the following constructor:
I realy need to build that comp class so I can compare those structure's fields but I realy don't know how. I've searched a lot and didn't find anything useful about that Compare class.Code:template <class RandomAccessIterator, class Compare> void make_heap(RandomAccessIterator first, RandomAccessIterator last, Compare comp);
Can anyone teach me how to build one?
Thank you for any help.