I want to do structure with some type and with ability to use another comparator somewhen.This way of do template is not work.How I can do it correct?
template<typename T, typename Comparator = std::less<T>> struct list_heap{}; bool min(int &a, int &b){return a<b;}; int main(){list_heap<int>r;list_heap<int, min>rr;return 0;};