From Jason Turner

[cstdint]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp4bkwdfaq/{from.md → to.md} +33 -34
tmp/tmp4bkwdfaq/{from.md → to.md} RENAMED
@@ -2,46 +2,46 @@
2
 
3
  ### Header `<cstdint>` synopsis <a id="cstdint.syn">[[cstdint.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
- typedef signed integer type int8_t; // optional
8
- typedef signed integer type int16_t; // optional
9
- typedef signed integer type int32_t; // optional
10
- typedef signed integer type int64_t; // optional
11
 
12
- typedef signed integer type int_fast8_t;
13
- typedef signed integer type int_fast16_t;
14
- typedef signed integer type int_fast32_t;
15
- typedef signed integer type int_fast64_t;
16
 
17
- typedef signed integer type int_least8_t;
18
- typedef signed integer type int_least16_t;
19
- typedef signed integer type int_least32_t;
20
- typedef signed integer type int_least64_t;
21
 
22
- typedef signed integer type intmax_t;
23
- typedef signed integer type intptr_t; // optional
24
 
25
- typedef unsigned integer type uint8_t; // optional
26
- typedef unsigned integer type uint16_t; // optional
27
- typedef unsigned integer type uint32_t; // optional
28
- typedef unsigned integer type uint64_t; // optional
29
 
30
- typedef unsigned integer type uint_fast8_t;
31
- typedef unsigned integer type uint_fast16_t;
32
- typedef unsigned integer type uint_fast32_t;
33
- typedef unsigned integer type uint_fast64_t;
34
 
35
- typedef unsigned integer type uint_least8_t;
36
- typedef unsigned integer type uint_least16_t;
37
- typedef unsigned integer type uint_least32_t;
38
- typedef unsigned integer type uint_least64_t;
39
 
40
- typedef unsigned integer type uintmax_t;
41
- typedef unsigned integer type uintptr_t; // optional
42
- } // namespace std
43
  ```
44
 
45
  The header also defines numerous macros of the form:
46
 
47
  ``` cpp
@@ -57,11 +57,10 @@ plus function macros of the form:
57
 
58
  ``` cpp
59
  [U]INT{8 16 32 64 MAX}_C
60
  ```
61
 
62
- The header defines all functions, types, and macros the same as 7.18 in
63
- the C standard. The macros defined by `<cstdint>` are provided
64
- unconditionally. In particular, the symbols `__STDC_LIMIT_MACROS` and
65
- `__STDC_CONSTANT_MACROS` (mentioned in footnotes 219, 220, and 222 in
66
- the C standard) play no role in C++.
67
 
 
2
 
3
  ### Header `<cstdint>` synopsis <a id="cstdint.syn">[[cstdint.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
+ using int8_t = signed integer type; // optional
8
+ using int16_t = signed integer type; // optional
9
+ using int32_t = signed integer type; // optional
10
+ using int64_t = signed integer type; // optional
11
 
12
+ using int_fast8_t = signed integer type;
13
+ using int_fast16_t = signed integer type;
14
+ using int_fast32_t = signed integer type;
15
+ using int_fast64_t = signed integer type;
16
 
17
+ using int_least8_t = signed integer type;
18
+ using int_least16_t = signed integer type;
19
+ using int_least32_t = signed integer type;
20
+ using int_least64_t = signed integer type;
21
 
22
+ using intmax_t = signed integer type;
23
+ using intptr_t = signed integer type; // optional
24
 
25
+ using uint8_t = unsigned integer type; // optional
26
+ using uint16_t = unsigned integer type; // optional
27
+ using uint32_t = unsigned integer type; // optional
28
+ using uint64_t = unsigned integer type; // optional
29
 
30
+ using uint_fast8_t = unsigned integer type;
31
+ using uint_fast16_t = unsigned integer type;
32
+ using uint_fast32_t = unsigned integer type;
33
+ using uint_fast64_t = unsigned integer type;
34
 
35
+ using uint_least8_t = unsigned integer type;
36
+ using uint_least16_t = unsigned integer type;
37
+ using uint_least32_t = unsigned integer type;
38
+ using uint_least64_t = unsigned integer type;
39
 
40
+ using uintmax_t = unsigned integer type;
41
+ using uintptr_t = unsigned integer type; // optional
42
+ }
43
  ```
44
 
45
  The header also defines numerous macros of the form:
46
 
47
  ``` cpp
 
57
 
58
  ``` cpp
59
  [U]INT{8 16 32 64 MAX}_C
60
  ```
61
 
62
+ The header defines all types and macros the same as the C standard
63
+ library header `<stdint.h>`.
64
+
65
+ ISO C 7.20.
 
66