How to make a map with two keys?

Feb 3, 2014 at 6:59pm
I want to be able to search for just one key, like this:

Sprite.at["Stone"] == Sprite.at[0]

Sprite.at["Grass"] == Sprite.at[1]

Is this possible, or should I be using another method?
Feb 3, 2014 at 7:13pm
boost has multi-index containers ( http://www.boost.org/doc/libs/release/libs/multi_index/doc/index.html ), or you could put one together yourself
Feb 3, 2014 at 11:17pm
Topic archived. No new replies allowed.