20 Sep
2006
20 Sep
'06
12:40 p.m.
Well, I'm not sure if I'm getting your question, but seems to me STL ordered containers and Boost.MultiIndex allows for context-dependent comparison operators: you just have to provide the contextual info as part of the comparison object internal state:
This is the famous mailing list effect, 2 minutes after I send this post I looked again into the header of std::set just to find exactly what you described. I don't know how could I have missed it before. I was just all the time sure one cannot do it, so never really tried to look for it. Many Thanks anyway, Lukasz Dobrek