enumerated_type
Error: Fetching the article from Wikipedia failed.

Table of Contents

Enumerated type

Return to Enum classes, Enums, enumerated types, Java Enum class

https://en.cppreference.com/w/cpp/keyword/enum

enumerated type

Enumerated type refers to a data type consisting of a set of named values.

“In computer programming, an enumerated type (also called enumeration, enum, or factor in the R (programming language) | R programming language, and a categorical variable in statistics) is a data type consisting of a set of named value (computer science) | values called elements, members, enumeral, or enumerators of the type. The enumerator names are usually identifiers that behave as constant (programming) | constants in the language. An enumerated type can be seen as a degenerate tagged union of unit type. A variable (computer science) | variable that has been declaration (computer science) | declared as having an enumerated type can be assigned any of the enumerators as a value. In other words, an enumerated type has values that are different from each other, and that can be compared and assigned, but are not specified by the programmer as having any particular concrete representation in the computer's memory; compilers and interpreters can represent them arbitrarily.”

Fair Use Source:

Categories

enumerated_type.txt · Last modified: 2025/02/01 06:59 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki