From Jason Turner

[cstddef.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmprydizgxp/{from.md → to.md} +43 -0
tmp/tmprydizgxp/{from.md → to.md} RENAMED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Header `<cstddef>` synopsis <a id="cstddef.syn">[[cstddef.syn]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ using ptrdiff_t = see below;
6
+ using size_t = see below;
7
+ using max_align_t = see below;
8
+ using nullptr_t = decltype(nullptr);
9
+
10
+ enum class byte : unsigned char {};
11
+
12
+ // [support.types.byteops], byte type operations
13
+ template <class IntType>
14
+ constexpr byte& operator<<=(byte& b, IntType shift) noexcept;
15
+ template <class IntType>
16
+ constexpr byte operator<<(byte b, IntType shift) noexcept;
17
+ template <class IntType>
18
+ constexpr byte& operator>>=(byte& b, IntType shift) noexcept;
19
+ template <class IntType>
20
+ constexpr byte operator>>(byte b, IntType shift) noexcept;
21
+ constexpr byte& operator|=(byte& l, byte r) noexcept;
22
+ constexpr byte operator|(byte l, byte r) noexcept;
23
+ constexpr byte& operator&=(byte& l, byte r) noexcept;
24
+ constexpr byte operator&(byte l, byte r) noexcept;
25
+ constexpr byte& operator^=(byte& l, byte r) noexcept;
26
+ constexpr byte operator^(byte l, byte r) noexcept;
27
+ constexpr byte operator~(byte b) noexcept;
28
+ template <class IntType>
29
+ constexpr IntType to_integer(byte b) noexcept;
30
+ }
31
+
32
+ #define NULL see below
33
+ #define offsetof(P, D) see below
34
+ ```
35
+
36
+ The contents and meaning of the header `<cstddef>` are the same as the C
37
+ standard library header `<stddef.h>`, except that it does not declare
38
+ the type `wchar_t`, that it also declares the type `byte` and its
39
+ associated operations ([[support.types.byteops]]), and as noted in
40
+ [[support.types.nullptr]] and [[support.types.layout]].
41
+
42
+ ISO C 7.19
43
+