diff --git a/P0959.md b/P0959.md index 0a30b9a..e31be2b 100644 --- a/P0959.md +++ b/P0959.md @@ -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.