4 Dec
2011
4 Dec
'11
8:51 a.m.
By the way, why don't you just inherit from multi_index_container and add [] operator? MIC itself already has STL-complient interace, so trying to rewrite it is hardly worth the effort. The following is your code, but with inheritance:
I have already written a lot of code that uses std::map. I would like to replace std::map with my class Ordered_Map without changing my code. This is possible his example?
Yes, it's possible. What I mean is that in your case it's much simpler to extend MIC's interface, than to write an adapter from scratch.