, , boost::bind
, std::bind
, , . :
class my_compare {
SortOrder so;
public:
my_compare(const SortOrder& so): so(so) {}
bool operator()(const Record& a, const Record& b) const {
return comparison(a, b, so);
}
};
my_compare
priority_queue
my_compare(sort_order)
.