From Jason Turner

[cstdint.syn]

Diff to HTML by rtfpessoa

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