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 8670a7d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cppcx/platform-guid-value-class.md
+50-26Lines changed: 50 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,19 +18,19 @@ public value struct Guid
18
18
19
19
### Members
20
20
21
-
Guid has the Equals(), GetHashCode(), and ToString() methods derived from the [Platform::Object Class](../cppcx/platform-object-class.md), and the GetTypeCode() method derived from the [Platform::Type Class](../cppcx/platform-type-class.md). Guid also has the following members.
21
+
`Platform::Guid` has the `Equals()`, `GetHashCode()`, and `ToString()` methods derived from the [Platform::Object Class](../cppcx/platform-object-class.md), and the `GetTypeCode()` method derived from the [Platform::Type Class](../cppcx/platform-type-class.md). `Platform::Guid` also has the following members.
22
22
23
23
|Member|Description|
24
24
|------------|-----------------|
25
-
|[Guid](#ctor)|Initializes a new instance of the Guid struct.|
25
+
|[Guid](#ctor)|Initializes a new instance of a `Platform::Guid`.|
|[operator<](#operator-less)|Less than operator.|
29
-
|[operator()](#operator-call)|Converts a Guid to a GUID.|
29
+
|[operator()](#operator-call)|Converts a `Platform::Guid` to a `GUID`.|
30
30
31
31
### Remarks
32
32
33
-
For an example of how to generate a new Platform::Guid using the Windows function [CoCreateGuid](/windows/desktop/api/combaseapi/nf-combaseapi-cocreateguid), see [WinRT component: How to generate a GUID?](https://www.eternalcoding.com/?p=383)
33
+
For an example of how to generate a new `Platform::Guid` using the Windows function [CoCreateGuid](/windows/desktop/api/combaseapi/nf-combaseapi-cocreateguid), see [WinRT component: How to generate a GUID?](https://www.eternalcoding.com/?p=383)
34
34
35
35
### Requirements
36
36
@@ -44,7 +44,7 @@ For an example of how to generate a new Platform::Guid using the Windows functio
44
44
45
45
## <a name="ctor"></a> Guid::Guid Constructors
46
46
47
-
Initializes a new instance of a Guid struct.
47
+
Initializes a new instance of a `Platform::Guid`.
48
48
49
49
### Syntax
50
50
@@ -74,91 +74,115 @@ Guid(
74
74
### Parameters
75
75
76
76
*a*<br/>
77
-
The first 4 bytes of the GUID.
77
+
The first 4 bytes of the `GUID`.
78
78
79
79
*b*<br/>
80
-
The next 2 bytes of the GUID.
80
+
The next 2 bytes of the `GUID`.
81
81
82
82
*c*<br/>
83
-
The next 2 bytes of the GUID.
83
+
The next 2 bytes of the `GUID`.
84
84
85
85
*d*<br/>
86
-
The next byte of the GUID.
86
+
The next byte of the `GUID`.
87
87
88
88
*e*<br/>
89
-
The next byte of the GUID.
89
+
The next byte of the `GUID`.
90
90
91
91
*f*<br/>
92
-
The next byte of the GUID.
92
+
The next byte of the `GUID`.
93
93
94
94
*g*<br/>
95
-
The next byte of the GUID.
95
+
The next byte of the `GUID`.
96
96
97
97
*h*<br/>
98
-
The next byte of the GUID.
98
+
The next byte of the `GUID`.
99
99
100
100
*i*<br/>
101
-
The next byte of the GUID.
101
+
The next byte of the `GUID`.
102
102
103
103
*j*<br/>
104
-
The next byte of the GUID.
104
+
The next byte of the `GUID`.
105
105
106
106
*k*<br/>
107
-
The next byte of the GUID.
107
+
The next byte of the `GUID`.
108
108
109
109
*m*<br/>
110
-
A GUID in the form a [GUID structure](https://msdn.microsoft.com/library/windows/desktop/aa373931).
110
+
A `GUID` in the form a [GUID structure](https://msdn.microsoft.com/library/windows/desktop/aa373931).
True if the first guid is ordered before the second guid. The ordering is lexicographic after treating the Guid as if it were an array of four 32-bit unsigned values. Note that this is not the same ordering used by SQL Server, nor is it the same ordering used by the .NET Framework, nor is it the same as lexicographical ordering by string representation.
179
+
True if *guid1*is ordered before *guid2*. The ordering is lexicographic after treating each `Platform::Guid` as if it's an array of four 32-bit unsigned values. This isn't the ordering used by SQL Server or the .NET Framework, nor is it the same as lexicographical ordering by string representation.
156
180
157
-
This operator is provided so that Guid objects can be more easily consumed by the C++ standard library.
181
+
This operator is provided so that `Guid` objects can be more easily consumed by the C++ standard library.
0 commit comments