STL Map with a Vector for the Key

后端 未结 4 937
刺人心
刺人心 2020-12-30 04:32

I\'m working with some binary data that I have stored in arbitrarily long arrays of unsigned ints. I\'ve found that I have some duplication of data, and am looking to igno

4条回答
  •  無奈伤痛
    2020-12-30 04:49

    The requirements for being a key in std::map are satisfied by std::vector, so yes you can do that. Sounds like a good temporary solution (easy to code, minimum of hassle) -- but you know what they say: "there is nothing more permanent than the temporary".

提交回复
热议问题