Update P0959.md
paragraph renaming
This commit is contained in:
parent
0c2f9b5094
commit
405e76041c
2
P0959.md
2
P0959.md
@ -164,7 +164,7 @@ assert(id.version() == uuid_version::random_number_based);
|
|||||||
assert(id.variant() == uuid_variant::rfc);
|
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user