tmp/tmpyr_9fsmq/{from.md → to.md}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
##### Enumerated types <a id="enumerated.types">[[enumerated.types]]</a>
|
| 2 |
|
| 3 |
Several types defined in Clause [[input.output]] are *enumerated
|
| 4 |
types*. Each enumerated type may be implemented as an enumeration or as
|
| 5 |
-
a synonym for an enumeration.[^
|
| 6 |
|
| 7 |
-
The enumerated type
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
enum enumerated {
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
.....
|
| 17 |
```
|
| 18 |
|
| 19 |
-
Here, the names
|
| 20 |
this particular enumerated type. All such elements have distinct values.
|
| 21 |
|
|
|
|
| 1 |
##### Enumerated types <a id="enumerated.types">[[enumerated.types]]</a>
|
| 2 |
|
| 3 |
Several types defined in Clause [[input.output]] are *enumerated
|
| 4 |
types*. Each enumerated type may be implemented as an enumeration or as
|
| 5 |
+
a synonym for an enumeration.[^7]
|
| 6 |
|
| 7 |
+
The enumerated type `enumerated` can be written:
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
+
enum enumerated { V₀, V₁, V₂, V₃, ..... };
|
| 11 |
|
| 12 |
+
inline const enumerated C₀(V₀);
|
| 13 |
+
inline const enumerated C₁(V₁);
|
| 14 |
+
inline const enumerated C₂(V₂);
|
| 15 |
+
inline const enumerated C₃(V₃);
|
| 16 |
.....
|
| 17 |
```
|
| 18 |
|
| 19 |
+
Here, the names `C₀`, `C₁`, etc. represent *enumerated elements* for
|
| 20 |
this particular enumerated type. All such elements have distinct values.
|
| 21 |
|