how do you make a heterogeneous boost::map?

后端 未结 6 2061
旧巷少年郎
旧巷少年郎 2020-11-30 00:15

I want to have a map that has a homogeneous key type but heterogeneous data types.

I want to be able to do something like (pseudo-code):

boost::map&l         


        
6条回答
  •  春和景丽
    2020-11-30 00:28

    boost any surely works, but I think using Int to type Technology as the key type of fusion map is a better solution. No type erasure and possibly faster

提交回复
热议问题