Skip to content

Commit a642765

Browse files
author
msebolt
committed
cpp reconcile pr1
1 parent 8564417 commit a642765

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

docs/standard-library/cstddef.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,50 @@ ms.assetid: be8d1e39-5974-41ee-b41d-eafa6c82ffce
99

1010
Includes the Standard C library header \<stddef.h> and adds the associated names to the `std` namespace.
1111

12+
> [!NOTE]
13+
> `cstddef` doesn't include **wchar_t** but does include the type **byte**.
14+
1215
## Syntax
1316

1417
```cpp
15-
#include <cstddef>
18+
#include <cstddef>
19+
```
20+
21+
## Types
22+
23+
```cpp
24+
ptrdiff_t = see below;
25+
using size_t = see below;
26+
using max_align_t = see below;
27+
using nullptr_t = decltype(nullptr);
28+
```
29+
30+
## Enums
31+
32+
```cpp
33+
enum class byte : unsigned char {};
34+
```
35+
36+
## Operators
37+
38+
```cpp
39+
template <class IntType> byte& operator<<=(byte& b, IntType shift)
40+
template <class IntType> byte operator<<(byte b, IntType shift) noexcept;
41+
template <class IntType> byte& operator>>=(byte& b, IntType shift) noexcept;
42+
template <class IntType> byte operator>>(byte b, IntType shift) noexcept;
43+
byte& operator|=(byte& l, byte r) noexcept;
44+
byte operator|(byte l, byte r) noexcept;
45+
byte& operator&=(byte& l, byte r) noexcept;
46+
byte operator&(byte l, byte r) noexcept;
47+
byte& operator^=(byte& l, byte r) noexcept;
48+
byte operator^(byte l, byte r) noexcept;
49+
byte operator~(byte b) noexcept;
50+
```
51+
52+
## Functions
53+
54+
```cpp
55+
template <class IntType> IntType to_integer(byte b) noexcept;
1656
```
1757
1858
## Remarks

0 commit comments

Comments
 (0)