From 405e76041c0cf576f488e7a83dd7f31bd5bb5977 Mon Sep 17 00:00:00 2001 From: Marius Bancila Date: Fri, 2 Nov 2018 23:19:49 +0200 Subject: [PATCH] Update P0959.md paragraph renaming --- P0959.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.