Update P0959.md

This commit is contained in:
Marius Bancila 2018-11-02 23:07:37 +02:00 committed by GitHub
parent e9dd04b7a4
commit 3c5adc5cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,9 +255,9 @@ assert(to_wstring(id) == L"47183823-2574-4bfd-b411-99ed177d3e43");
The order of the internal UUID bytes reflects directly into the string bytes order. That is, for a UUID with the internal bytes in the form `aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn,oo,pp` the resulted string has the form `"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp"`.
### `operator==` and `operator!=`
### `operator<=>`
Non-member `operators ==` and `operator !=` are provided in order to test the equality/inequality of two `uuid` values.
Member `operator<=>` is provided in order to compare `uuid` values. The return value is `std::strong_ordering`.
```cpp
uuid empty;