Typescript-style union type to define map in c++

前端 未结 0 608
半阙折子戏
半阙折子戏 2021-01-06 07:07

I would like to create a std::map which only allows specific keys. In Typescript I would do something along the lines of



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题