You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 35abfc6
Browse filesBrowse the repository at this point in the historyBrowse files
Includes the Standard C library header \<limits.h> and adds the associated names to the `std` namespace.
10
+
Includes the C standard library header \<limits.h> and adds the associated names to the `std` namespace. Including this header ensures that the names declared using external linkage in the C standard library header are declared in the `std` namespace.
11
11
12
12
## Syntax
13
13
14
14
```cpp
15
15
#include<climits>
16
16
```
17
17
18
-
## Remarks
19
-
20
-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
Includes the Standard C library header \<stddef.h> and adds the associated names to the `std` namespace.
10
+
Includes the C standard library header \<stddef.h> and adds associated names to the `std` namespace. Including this header ensures that the names declared using external linkage in the C standard library header are declared in the `std` namespace.
11
11
12
12
> [!NOTE]
13
-
> `cstddef` doesn't include**wchar_t**but does include the type **byte**.
13
+
> \<cstddef> includes type**byte**and doesn't include type **wchar_t**.
14
14
15
15
## Syntax
16
16
17
17
```cpp
18
-
#include<cstddef>
18
+
#include<cstddef>
19
19
```
20
20
21
-
## Types
21
+
## Namespace and Macros
22
22
23
23
```cpp
24
-
ptrdiff_t = see below;
25
-
usingsize_t = see below;
26
-
usingmax_align_t = see below;
24
+
namespacestd {
25
+
using ptrdiff_t = see definition;
26
+
using size_t = see definition;
27
+
using max_align_t = see definition;
27
28
using nullptr_t = decltype(nullptr);
29
+
}
30
+
31
+
#define NULL // an implementation-defined null pointer constant
32
+
#define offsetof(type, member-designator)
28
33
```
29
34
30
-
##Enums
35
+
### Parameters
31
36
32
-
```cpp
33
-
enumclassbyte : unsigned char {};
34
-
```
37
+
*ptrdiff_t*<br/>
38
+
An implementation-defined signed integer type that can hold the difference of two subscripts in an array object.
35
39
36
-
## Operators
40
+
*size_t*<br/>
41
+
An implementation-defined unsigned integer type that is large enough to contain the size in bytes of any object.
A POD type whose alignment requirement is at least as great as that of every scalar type, and whose alignment requirement is supported in every context.
45
+
46
+
*nullptr_t*<br/>
47
+
A synonym for the type of a **nullptr** expression. Although a **nullptr** address can't be taken, the address of another *nullptr_t* object that is an lvalue can be taken.
51
48
52
-
## Functions
49
+
## byte Class
53
50
54
51
```cpp
55
-
template <classIntType> IntType to_integer(byte b) noexcept;
Includes the Standard C library header \<stdlib.h> and adds the associated names to the `std` namespace.
10
+
Includes the Standard C library header \<stdlib.h> and adds the associated names to the `std` namespace. Including this header ensures that the names declared using external linkage in the C standard library header are declared in the `std` namespace.
11
+
12
+
> [!NOTE]
13
+
> \<stdlib.h> doesn't include the type **wchar_t**.
11
14
12
15
## Syntax
13
16
14
17
```cpp
15
18
#include<cstdlib>
16
19
```
17
20
18
-
## Remarks
19
-
20
-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
21
-
22
-
## Types
21
+
## Namespace and Macros
23
22
24
23
```cpp
25
-
usingsize_t = see below;
26
-
usingdiv_t = see below;
27
-
usingldiv_t = see below;
28
-
usinglldiv_t = see below;
24
+
namespacestd {
25
+
using size_t = see definition;
26
+
using div_t = see definition;
27
+
using ldiv_t = see definition;
28
+
using lldiv_t = see definition;
29
+
}
30
+
31
+
#define NULL
32
+
#define EXIT_FAILURE
33
+
#define EXIT_SUCCESS
34
+
#define RAND_MAX
35
+
#define MB_CUR_MAX
29
36
```
30
37
31
-
## Definitions
38
+
## Functions
39
+
40
+
### Exposition only
32
41
33
42
```cpp
34
-
#defineNULL
35
-
#defineEXIT_FAILURE
36
-
#defineEXIT_SUCCESS
37
-
#defineRAND_MAX
38
-
#defineMB_CUR_MAX
43
+
extern "C" using c-atexit-handler = void();
44
+
extern "C++" using atexit-handler = void();
45
+
extern "C" using c-compare-pred = int(const void*, const void*);
46
+
extern "C++" using compare-pred = int(const void*, const void*);
39
47
```
40
48
41
-
##Functions
49
+
### Start and termination
42
50
43
51
```cpp
44
-
function type aliases extern "C"
45
-
using c-atexit-handler = void();
46
-
using atexit-handler = void();
47
-
using c-compare-pred = int(const void*, const void*);
48
-
using compare-pred = int(const void*, const void*);
52
+
[[noreturn]]voidabort() noexcept;
53
+
intatexit(c-atexit-handler * func) noexcept;
54
+
int atexit(atexit-handler * func) noexcept;
55
+
int at_quick_exit(c-atexit-handler * func) noexcept;
56
+
int at_quick_exit(atexit-handler * func) noexcept;
0 commit comments