Skip to content

Commit 270eec1

Browse files
author
msebolt
committed
daily update
1 parent 85e3d09 commit 270eec1

9 files changed

Lines changed: 208 additions & 1 deletion

File tree

‎docs/standard-library/cassert.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Includes the Standard C library header \<assert.h> and adds the associated names
1919

2020
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
2121

22+
## Definitions
23+
24+
```cpp
25+
#define assert(E)
26+
```
27+
2228
## See also
2329

2430
[assert Macro, _assert, _wassert](../c-runtime-library/reference/assert-macro-assert-wassert.md)<br/>

‎docs/standard-library/cerrno.md‎

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,90 @@ Includes the Standard C library header \<errno.h> and adds the associated names
1919

2020
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
2121

22+
## Definitions
23+
24+
```cpp
25+
#define errno
26+
#define E2BIG
27+
#define EACCES
28+
#define EADDRINUSE
29+
#define EADDRNOTAVAIL
30+
#define EAFNOSUPPORT
31+
#define EAGAIN
32+
#define EALREADY
33+
#define EBADF
34+
#define EBADMSG
35+
#define EBUSY
36+
#define ECANCELED
37+
#define ECHILD
38+
#define ECONNABORTED
39+
#define ECONNREFUSED
40+
#define ECONNRESET
41+
#define EDEADLK
42+
#define EDESTADDRREQ
43+
#define EDOM
44+
#define EEXIST
45+
#define EFAULT
46+
#define EFBIG
47+
#define EHOSTUNREACH
48+
#define EIDRM
49+
#define EILSEQ
50+
#define EINPROGRESS
51+
#define EINTR
52+
#define EINVAL
53+
#define EIO
54+
#define EISCONN
55+
#define EISDIR
56+
#define ELOOP
57+
#define EMFILE
58+
#define EMLINK
59+
#define EMSGSIZE
60+
#define ENAMETOOLONG
61+
#define ENETDOWN
62+
#define ENETRESET
63+
#define ENETUNREACH
64+
#define ENFILE
65+
#define ENOBUFS
66+
#define ENODATA
67+
#define ENODEV
68+
#define ENOENT
69+
#define ENOEXEC
70+
#define ENOLCK
71+
#define ENOLINK
72+
#define ENOMEM
73+
#define ENOMSG
74+
#define ENOPROTOOPT
75+
#define ENOSPC
76+
#define ENOSR
77+
#define ENOSTR
78+
#define ENOSYS
79+
#define ENOTCONN
80+
#define ENOTDIR
81+
#define ENOTEMPTY
82+
#define ENOTRECOVERABLE
83+
#define ENOTSOCK
84+
#define ENOTSUP
85+
#define ENOTTY
86+
#define ENXIO
87+
#define EOPNOTSUPP
88+
#define EOVERFLOW
89+
#define EOWNERDEAD
90+
#define EPERM
91+
#define EPIPE
92+
#define EPROTO
93+
#define EPROTONOSUPPORT
94+
#define EPROTOTYPE
95+
#define ERANGE
96+
#define EROFS
97+
#define ESPIPE
98+
#define ESRCH
99+
#define ETIME
100+
#define ETIMEDOUT
101+
#define ETXTBSY
102+
#define EWOULDBLOCK
103+
#define EXDEV
104+
```
105+
22106
## See also
23107

24108
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>

‎docs/standard-library/csetjmp.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ Includes the Standard C library header \<setjmp.h> and adds the associated names
1313

1414
```cpp
1515
#include <csetjmp>
16+
17+
using jmp_buf = see below;
18+
```
19+
20+
## Functions
21+
22+
```cpp
23+
[[noreturn]] void longjmp(jmp_buf env, int val);
24+
```
25+
26+
## Definitions
27+
28+
```cpp
29+
#define setjmp(env)
1630
```
1731

1832
## Remarks

‎docs/standard-library/csignal.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@ Includes the Standard C library header \<signal.h> and adds the associated names
1313

1414
```cpp
1515
#include <csignal>
16+
17+
using sig_atomic_t = see below;
18+
19+
extern using signal-handler = void(int);
20+
```
21+
22+
## Functions
23+
24+
```cpp
25+
signal-handler* signal(int sig, signal-handler* func);
26+
int raise(int sig);
27+
```
28+
29+
## Definitions
30+
31+
```cpp
32+
#define SIG_DFL
33+
#define SIG_ERR
34+
#define SIG_IGN
35+
#define SIGABRT
36+
#define SIGFPE
37+
#define SIGILL
38+
#define SIGINT
39+
#define SIGSEGV
40+
#define SIGTERM
1641
```
1742

1843
## Remarks

‎docs/standard-library/cstdarg.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,23 @@ Includes the Standard C library header \<stdarg.h> and adds the associated names
1313

1414
```cpp
1515
#include <cstdarg>
16+
17+
namespace std { using va_list = see below; }
1618
```
1719
1820
## Remarks
1921
2022
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
2123
24+
## Definitions
25+
26+
```cpp
27+
#define va_arg(V, P)
28+
#define va_copy(VDST, VSRC)
29+
#define va_end(V)
30+
#define va_start(V, P)
31+
```
32+
2233
## See also
2334

2435
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>

‎docs/standard-library/error-category-class.md‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Represents the abstract, common base for objects that describes a category of er
1313

1414
```cpp
1515
class error_category;
16+
17+
constexpr error_category() noexcept;
18+
virtual ~error_category();
19+
error_category(const error_category&) = delete
1620
```
1721
1822
## Remarks
@@ -31,13 +35,16 @@ Two predefined objects implement `error_category`: [generic_category](../standar
3135
|-|-|
3236
|[default_error_condition](#default_error_condition)|Stores the error code value for an error condition object.|
3337
|[equivalent](#equivalent)|Returns a value that specifies whether error objects are equivalent.|
38+
|[generic_category](#generic)||
3439
|[message](#message)|Returns the name of the specified error code.|
3540
|[name](#name)|Returns the name of the category.|
41+
|[system_category](#system)||
3642
3743
### Operators
3844
3945
|Operator|Description|
4046
|-|-|
47+
|[operator=](#op_as)||
4148
|[operator==](#op_eq_eq)|Tests for equality between `error_category` objects.|
4249
|[operator!=](#op_neq)|Tests for inequality between `error_category` objects.|
4350
|[operator<](#op_lt)|Tests if the [error_category](../standard-library/error-category-class.md) object is less than the `error_category` object passed in for comparison.|
@@ -98,6 +105,12 @@ The first member function returns `*this == _Cond.category() && _Cond.value() ==
98105
99106
The second member function returns `*this == _Code.category() && _Code.value() == _Errval`.
100107
108+
## <a name="generic"></a> generic_category
109+
110+
```cpp
111+
const error_category& generic_category();
112+
```
113+
101114
## <a name="message"></a> error_category::message
102115

103116
Returns the name of the specified error code.
@@ -130,7 +143,12 @@ virtual const char *name() const = 0;
130143

131144
Returns the name of the category as a null-terminated byte string.
132145

133-
### Remarks
146+
## <a name="op_as"></a> error_category::operator=
147+
148+
```cpp
149+
error_category& operator=(const error_category&) = delete;
150+
```
151+
134152

135153
## <a name="op_eq_eq"></a> error_category::operator==
136154

@@ -198,6 +216,12 @@ bool operator<(const error_category& right) const;
198216

199217
The member operator returns `this < &right`.
200218

219+
## <a name="system"></a> system_category
220+
221+
```cpp
222+
const error_category& system_category();
223+
```
224+
201225
## <a name="value_type"></a> error_category::value_type
202226

203227
A type that represents the stored error code value.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "hash Struct"
3+
ms.date: "11/04/2016"
4+
f1_keywords: ["system_error/std::hash"]
5+
helpviewer_keywords: ["std::hash"]
6+
---
7+
# hash Struct
8+
9+
## Syntax
10+
11+
```cpp
12+
template <class T> struct hash;
13+
template <> struct hash<error_code>;
14+
template <> struct hash<error_condition>;
15+
```
16+
17+
## Requirements
18+
19+
**Header:** \<system_error>
20+
21+
**Namespace:** std
22+
23+
## See also
24+
25+
[<system_error>](../standard-library/system-error.md)<br/>

‎docs/standard-library/system-error-operators.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ms.assetid: c14edefb-bd8a-4e90-88d3-c59c98e6f73c
99
||||
1010
|-|-|-|
1111
|[operator!=](#op_neq)|[operator&lt;](#op_lt)|[operator==](#op_eq_eq)|
12+
|[operator&lt;&lt;](#op_ostream)|||
1213

1314
## <a name="op_eq_eq"></a> operator==
1415

@@ -20,6 +21,9 @@ bool operator==(const error_code& left,
2021

2122
bool operator==(const error_condition& left,
2223
const error_code& right);
24+
25+
bool operator==(const error_condition& left,
26+
const error_condition& right);
2327
```
2428

2529
### Parameters
@@ -47,6 +51,12 @@ bool operator!=(const error_code& left,
4751

4852
bool operator!=(const error_condition& left,
4953
const error_code& right);
54+
55+
bool operator!=(const error_code& left,
56+
const error_code& right);
57+
58+
bool operator!=(const error_condition& left,
59+
const error_condition& right);
5060
```
5161

5262
### Parameters
@@ -107,6 +117,13 @@ inline bool operator<(
107117

108118
This function tests the error order.
109119

120+
## <a name="op_ostream"></a> operator&lt;&lt;
121+
122+
```cpp
123+
template <class charT, class traits>
124+
basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const error_code& ec);
125+
```
126+
110127
## See also
111128
112129
[<system_error>](../standard-library/system-error.md)<br/>

‎docs/standard-library/system-error.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Include the header \<system_error> to define the exception class `system_error`
5050
|[error_category](../standard-library/error-category-class.md)|Represents the abstract, common base for objects that describes a category of error codes.|
5151
|[error_code](../standard-library/error-code-class.md)|Represents low-level system errors that are implementation-specific.|
5252
|[error_condition](../standard-library/error-condition-class.md)|Represents user-defined error codes.|
53+
|[hash](../standard-library/hash-struct.md)||
5354
|[is_error_code_enum](../standard-library/is-error-code-enum-class.md)|Represents a type predicate that tests for the [error_code Class](../standard-library/error-code-class.md) enumeration.|
5455
|[is_error_condition_enum](../standard-library/is-error-condition-enum-class.md)|Represents a type predicate that tests for the [error_condition Class](../standard-library/error-condition-class.md) enumeration.|
5556
|[system_error](../standard-library/system-error-class.md)|Represents the base class for all exceptions thrown to report a low-level system overflow.|

0 commit comments

Comments
 (0)