From Jason Turner

[syserr]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp0xn2f948/{from.md → to.md} +11 -11
tmp/tmp0xn2f948/{from.md → to.md} RENAMED
@@ -30,11 +30,11 @@ namespace std {
30
  struct is_error_code_enum : public false_type {};
31
 
32
  template<class T>
33
  struct is_error_condition_enum : public false_type {};
34
 
35
- enum class errc {
36
  address_family_not_supported, // EAFNOSUPPORT
37
  address_in_use, // EADDRINUSE
38
  address_not_available, // EADDRNOTAVAIL
39
  already_connected, // EISCONN
40
  argument_list_too_long, // E2BIG
@@ -359,18 +359,18 @@ namespace std {
359
 
360
  ``` cpp
361
  error_code() noexcept;
362
  ```
363
 
364
- *Effects:* Initializes `val_` with `0` and `cat_` with
365
  `&system_category()`.
366
 
367
  ``` cpp
368
  error_code(int val, const error_category& cat) noexcept;
369
  ```
370
 
371
- *Effects:* Initializes `val_` with `val` and `cat_` with `&cat`.
372
 
373
  ``` cpp
374
  template<class ErrorCodeEnum>
375
  error_code(ErrorCodeEnum e) noexcept;
376
  ```
@@ -388,11 +388,11 @@ assign(ec.value(), ec.category());
388
 
389
  ``` cpp
390
  void assign(int val, const error_category& cat) noexcept;
391
  ```
392
 
393
- *Ensures:* `val_ == val` and `cat_ == &cat`.
394
 
395
  ``` cpp
396
  template<class ErrorCodeEnum>
397
  error_code& operator=(ErrorCodeEnum e) noexcept;
398
  ```
@@ -418,17 +418,17 @@ void clear() noexcept;
418
 
419
  ``` cpp
420
  int value() const noexcept;
421
  ```
422
 
423
- *Returns:* `val_`.
424
 
425
  ``` cpp
426
  const error_category& category() const noexcept;
427
  ```
428
 
429
- *Returns:* `*cat_`.
430
 
431
  ``` cpp
432
  error_condition default_error_condition() const noexcept;
433
  ```
434
 
@@ -506,18 +506,18 @@ namespace std {
506
 
507
  ``` cpp
508
  error_condition() noexcept;
509
  ```
510
 
511
- *Effects:* Initializes `val_` with `0` and `cat_` with
512
  `&generic_category()`.
513
 
514
  ``` cpp
515
  error_condition(int val, const error_category& cat) noexcept;
516
  ```
517
 
518
- *Effects:* Initializes `val_` with `val` and `cat_` with `&cat`.
519
 
520
  ``` cpp
521
  template<class ErrorConditionEnum>
522
  error_condition(ErrorConditionEnum e) noexcept;
523
  ```
@@ -536,11 +536,11 @@ assign(ec.value(), ec.category());
536
 
537
  ``` cpp
538
  void assign(int val, const error_category& cat) noexcept;
539
  ```
540
 
541
- *Ensures:* `val_ == val` and `cat_ == &cat`.
542
 
543
  ``` cpp
544
  template<class ErrorConditionEnum>
545
  error_condition& operator=(ErrorConditionEnum e) noexcept;
546
  ```
@@ -567,17 +567,17 @@ void clear() noexcept;
567
 
568
  ``` cpp
569
  int value() const noexcept;
570
  ```
571
 
572
- *Returns:* `val_`.
573
 
574
  ``` cpp
575
  const error_category& category() const noexcept;
576
  ```
577
 
578
- *Returns:* `*cat_`.
579
 
580
  ``` cpp
581
  string message() const;
582
  ```
583
 
 
30
  struct is_error_code_enum : public false_type {};
31
 
32
  template<class T>
33
  struct is_error_condition_enum : public false_type {};
34
 
35
+ enum class errc { // freestanding
36
  address_family_not_supported, // EAFNOSUPPORT
37
  address_in_use, // EADDRINUSE
38
  address_not_available, // EADDRNOTAVAIL
39
  already_connected, // EISCONN
40
  argument_list_too_long, // E2BIG
 
359
 
360
  ``` cpp
361
  error_code() noexcept;
362
  ```
363
 
364
+ *Effects:* Initializes *val\_* with `0` and *cat\_* with
365
  `&system_category()`.
366
 
367
  ``` cpp
368
  error_code(int val, const error_category& cat) noexcept;
369
  ```
370
 
371
+ *Effects:* Initializes *val\_* with `val` and *cat\_* with `&cat`.
372
 
373
  ``` cpp
374
  template<class ErrorCodeEnum>
375
  error_code(ErrorCodeEnum e) noexcept;
376
  ```
 
388
 
389
  ``` cpp
390
  void assign(int val, const error_category& cat) noexcept;
391
  ```
392
 
393
+ *Ensures:* *`val_`*` == val` and *`cat_`*` == &cat`.
394
 
395
  ``` cpp
396
  template<class ErrorCodeEnum>
397
  error_code& operator=(ErrorCodeEnum e) noexcept;
398
  ```
 
418
 
419
  ``` cpp
420
  int value() const noexcept;
421
  ```
422
 
423
+ *Returns:* *val\_*.
424
 
425
  ``` cpp
426
  const error_category& category() const noexcept;
427
  ```
428
 
429
+ *Returns:* `*`*`cat_`*.
430
 
431
  ``` cpp
432
  error_condition default_error_condition() const noexcept;
433
  ```
434
 
 
506
 
507
  ``` cpp
508
  error_condition() noexcept;
509
  ```
510
 
511
+ *Effects:* Initializes *val\_* with `0` and *cat\_* with
512
  `&generic_category()`.
513
 
514
  ``` cpp
515
  error_condition(int val, const error_category& cat) noexcept;
516
  ```
517
 
518
+ *Effects:* Initializes *val\_* with `val` and *cat\_* with `&cat`.
519
 
520
  ``` cpp
521
  template<class ErrorConditionEnum>
522
  error_condition(ErrorConditionEnum e) noexcept;
523
  ```
 
536
 
537
  ``` cpp
538
  void assign(int val, const error_category& cat) noexcept;
539
  ```
540
 
541
+ *Ensures:* *`val_`*` == val` and *`cat_`*` == &cat`.
542
 
543
  ``` cpp
544
  template<class ErrorConditionEnum>
545
  error_condition& operator=(ErrorConditionEnum e) noexcept;
546
  ```
 
567
 
568
  ``` cpp
569
  int value() const noexcept;
570
  ```
571
 
572
+ *Returns:* *val\_*.
573
 
574
  ``` cpp
575
  const error_category& category() const noexcept;
576
  ```
577
 
578
+ *Returns:* `*`*`cat_`*.
579
 
580
  ``` cpp
581
  string message() const;
582
  ```
583