tmp/tmp0zt6eixd/{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
|
| 4 |
-
|
| 5 |
-
|
| 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 |
|
|
|
|
| 1 |
##### Enumerated types <a id="enumerated.types">[[enumerated.types]]</a>
|
| 2 |
|
| 3 |
+
Several types defined in [[input.output]] are *enumerated types*. Each
|
| 4 |
+
enumerated type may be implemented as an enumeration or as a synonym for
|
| 5 |
+
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 |
|