How to make a map with two keys?

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?
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
Topic archived. No new replies allowed.