As their simplest, enumerations are a small step up from either constants or object-like macros. The basic idea of enumerations is that you use them to express a set of related values. This chapter covers enumeration declarations, name collisions, their underlying type, implicit conversion, and values.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Enumerations

  • Paul J. Lucas

摘要

As their simplest, enumerations are a small step up from either constants or object-like macros. The basic idea of enumerations is that you use them to express a set of related values. This chapter covers enumeration declarations, name collisions, their underlying type, implicit conversion, and values.