Suppose I have a set std::set<*int> and I want the elements to be sorted by the integer to which they point rather than the pointer type; is there some standard comp function I can use from the std library? If not, how would I declare such a set?
I'm guessing I would have to do define my own comparison function but how does that look in practice?