I want to create a boost::binomial_heap with a comparator that uses external data, something like
bool compare(int a1, int a2)
{
return price[a1] < price[a2];
}
(here price, for example, is a vector of doubles.)
How to declare the compare function that captures price?