Get index by type in std::variant

前端 未结 5 1197
暗喜
暗喜 2020-12-10 13:19

Is there a utility in the standard library to get the index of a given type in std::variant? Or should I make one for myself? That is, I want

5条回答
提交回复
热议问题