Update P0959.md

paragraph renaming
This commit is contained in:
Marius Bancila 2018-11-02 23:19:49 +02:00 committed by GitHub
parent 0c2f9b5094
commit 405e76041c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ assert(id.version() == uuid_version::random_number_based);
assert(id.variant() == uuid_variant::rfc);
```
### Equality and ordering
### Comparisons
Although it does not make sense to check whether a UUID is less (or less or equal) then another UUID, the overloading of this operator for `uuid` is necessary in order to be able to store `uuid` values in containers such as `std::set` that by default use `operator <` to compare keys. Because operators `==` and `!=` are needed for checking whether two UUIDs are the same (a basic operation for an identifier type) the three-way comparison operator `<=>` is defined so that all comparison operators are provided.