Skip to content

Commit dfff462

Browse files
author
Colin Robertson
authored
Merge pull request #860 from MicrosoftDocs/master636885396366517465
Fix git push error for protected CLA branch
2 parents 987cee5 + f115a32 commit dfff462

File tree

7 files changed

+172
-195
lines changed

7 files changed

+172
-195
lines changed

.openpublishing.redirection.json

Lines changed: 146 additions & 141 deletions
Large diffs are not rendered by default.

docs/standard-library/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@
405405
#### [<system_error> functions](system-error-functions.md)
406406
#### [<system_error> operators](system-error-operators.md)
407407
#### [<system_error> enums](system-error-enums.md)
408-
#### [<system_error> typedefs](system-error-typedefs.md)
409408
#### [error_category Class](error-category-class.md)
410409
#### [error_code Class](error-code-class.md)
411410
#### [error_condition Class](error-condition-class.md)

docs/standard-library/function-objects-in-the-stl.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Function Objects in the C++ Standard Library"
3-
ms.date: "11/04/2016"
3+
ms.date: "03/15/2019"
44
helpviewer_keywords: ["functors", "C++ Standard Library, functors", "C++ Standard Library, function objects", "function objects"]
55
ms.assetid: 85f8a735-2c7b-4f10-9c4d-95c666ec4192
66
---
@@ -23,9 +23,17 @@ public:
2323
return a < b;
2424
}
2525
};
26+
27+
int main()
28+
{
29+
Functor f;
30+
int a = 5;
31+
int b = 7;
32+
int ans = f(a, b);
33+
}
2634
```
2735

28-
The last line of the `main` function shows how you call the function object. This call looks like a call to a function, but it is actually calling operator() of the Functor type. This similarity between calling a function object and a function is how the term function object came about.
36+
The last line of the `main` function shows how you call the function object. This call looks like a call to a function, but it's actually calling operator() of the Functor type. This similarity between calling a function object and a function is how the term function object came about.
2937

3038
## Function Objects and Containers
3139

@@ -38,7 +46,7 @@ template <class Key,
3846
class set
3947
```
4048
41-
The second template argument is the function object `less`. This function object returns **true** if the first parameter passed to it is less than the second parameter passed. Since some containers sort their elements, the container needs a way of comparing two elements, and this is accomplished using the function object. You can define your own sorting criteria for containers by creating a function object and specifying it in the template list for the container.
49+
The second template argument is the function object `less`. This function object returns **true** if the first parameter is less than the second parameter. Since some containers sort their elements, the container needs a way of comparing two elements. The comparison is done by using the function object. You can define your own sorting criteria for containers by creating a function object and specifying it in the template list for the container.
4250
4351
## Function Objects and Algorithms
4452

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

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "&lt;system_error&gt; functions"
3-
ms.date: "11/04/2016"
3+
ms.date: "03/15/2019"
44
f1_keywords: ["system_error/std::generic_category", "system_error/std::make_error_code", "system_error/std::make_error_condition", "system_error/std::system_category"]
55
ms.assetid: 57d6f15f-f0b7-4e2f-80fe-31d3c320ee33
66
helpviewer_keywords: ["std::generic_category", "std::make_error_code", "std::make_error_condition", "std::system_category"]
@@ -10,14 +10,14 @@ helpviewer_keywords: ["std::generic_category", "std::make_error_code", "std::mak
1010
||||
1111
|-|-|-|
1212
|[generic_category](#generic_category)|[make_error_code](#make_error_code)|[make_error_condition](#make_error_condition)|
13-
|[system_category](#system_category)|
13+
|[system_category](#system_category)|||
1414

15-
## <a name="generic_category"></a> generic_category
15+
## <a name="generic_category"></a> generic_category
1616

1717
Represents the category for generic errors.
1818

1919
```cpp
20-
extern const error_category& generic_category();
20+
const error_category& generic_category() noexcept;
2121
```
2222

2323
### Remarks
@@ -29,14 +29,13 @@ The `generic_category` object is an implementation of [error_category](../standa
2929
Creates an error code object.
3030

3131
```cpp
32-
error_code make_error_code(generic_errno _Errno);
32+
error_code make_error_code(std::errc error) noexcept;
3333
```
3434
3535
### Parameters
3636
37-
|Parameter|Description|
38-
|---------------|-----------------|
39-
|*_Errno*|The enumeration value to store in the error code object.|
37+
*error*\
38+
The `std::errc` enumeration value to store in the error code object.
4039
4140
### Return Value
4241
@@ -49,14 +48,13 @@ The error code object.
4948
Creates an error condition object.
5049
5150
```cpp
52-
error_condition make_error_condition(generic_errno _Errno);
51+
error_condition make_error_condition(std::errc error) noexcept;
5352
```
5453

5554
### Parameters
5655

57-
|Parameter|Description|
58-
|---------------|-----------------|
59-
|*_Errno*|The enumeration value to store in the error condition object.|
56+
*error*\
57+
The `std::errc` enumeration value to store in the error code object.
6058

6159
### Return Value
6260

@@ -69,7 +67,7 @@ The error condition object.
6967
Represents the category for errors caused by low-level system overflows.
7068

7169
```cpp
72-
extern const error_category& system_category();
70+
const error_category& system_category() noexcept;
7371
```
7472

7573
### Remarks
@@ -78,4 +76,4 @@ The `system_category` object is an implementation of [error_category](../standar
7876

7977
## See also
8078

81-
[<system_error>](../standard-library/system-error.md)<br/>
79+
[\<system_error>](../standard-library/system-error.md)<br/>

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

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/standard-library/system-error.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "&lt;system_error&gt;"
3-
ms.date: "11/04/2016"
3+
ms.date: "03/15/2019"
44
f1_keywords: ["<system_error>", "system_error"]
55
helpviewer_keywords: ["system_error header"]
66
ms.assetid: 5e046c6e-48d9-4740-8c8a-05f3727c1215
@@ -22,12 +22,6 @@ Include the header \<system_error> to define the exception class `system_error`
2222
|[generic_category](../standard-library/system-error-functions.md#generic_category)|Represents the category for generic errors.|
2323
|[system_category](../standard-library/system-error-functions.md#system_category)|Represents the category for errors caused by low-level system overflows.|
2424

25-
### Typedefs
26-
27-
|Type name|Description|
28-
|-|-|
29-
|[generic_errno](../standard-library/system-error-typedefs.md#generic_errno)|A type that represents the enumeration that provides the symbolic names for all the error-code macros defined by Posix in `<errno.h>`.|
30-
3125
### Functions
3226

3327
|Function|Description|

docs/vcpkg.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: vcpkg-- A C++ package manager for Windows, Linux and MacOS
33
description: vcpkg is a command line package manager that greatly simplifies the acquisition and installation of open-source C++ libraries on Windows.
44
author: mikeblome
55
ms.author: mblome
6-
ms.date: "02/22/2019"
6+
ms.date: "03/18/2019"
77
ms.technology: "cpp-ide"
88
ms.assetid: f50d459a-e18f-4b4e-814b-913e444cedd6
99
---
@@ -13,7 +13,7 @@ vcpkg is a command-line package manager that greatly simplifies the acquisition
1313

1414
## Simple yet flexible
1515

16-
With a single command, you can download sources and build a library. vcpkg is itself an open-source project, available on GitHub. You can customize your private clone(s) in any way you like. For example, you can specify different libraries, or different versions of libraries than what are found in the public catalog. You can have multiple clones of vcpkg on a single machine, each one producing custom sets of libraries and/or compilation switches, etc. Each clone is a self-contained, x-copyable environment with its own copy of vcpkg.exe that operates only on its own hierarchy. vcpkg is not added to any environment variables, and has no dependency on the Windows Registry or Visual Studio.
16+
With a single command, you can download sources and build a library. vcpkg is itself an open-source project, available on GitHub. You can customize your private clone(s) in any way you like. For example, you can specify different libraries, or different versions of libraries than what are found in the public catalog. You can have multiple clones of vcpkg on a single machine, each one producing custom sets of libraries and/or compilation switches, etc. Each clone is a self-contained environment with its own copy of vcpkg.exe that operates only on its own hierarchy. vcpkg is not added to any environment variables, and has no dependency on the Windows Registry or Visual Studio.
1717

1818
## Sources not binaries
1919

0 commit comments

Comments
 (0)