阅读背景:

在枚举中转换整数的安全方法

来源:互联网 

What happens if I cast an integer into an enum class, but the value is not present in the enum? For example: I want a function that tests if an integer has some value from an enum class:What happens if I cast an integer into an enum




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: