Access an array/map with index of enum class type (something like a constexpr map)

前端 未结 0 1293
太阳男子
太阳男子 2020-12-01 03:44

Say I have a

enum class foo : std::uint32_t {
    a = 4711,
    b = 815,
    ...
};

with n enumeration constants. Assume that th

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