This commit is contained in:
nlohmann committed 2026-10-14 14:43:19 +00:00
1 parent e12071023d
commit dcc7a74a18
15 files changed
+319 -343

No files matched your search

+3 -5
View File
@@ -2,12 +2,10 @@
```
// since C++20
class basic_json {
std::partial_ordering operator<=>(const_reference rhs) const noexcept; // (1)
std::partial_ordering operator<=>(const_reference rhs) const noexcept; // (1)
template<typename ScalarType>
std::partial_ordering operator<=>(const ScalarType rhs) const noexcept(/* see below */); // (2)
};
template<typename ScalarType>
std::partial_ordering operator<=>(const ScalarType rhs) const noexcept(/* see below */); // (2)
```
1. 3-way compares two JSON values producing a result of type `std::partial_ordering` according to the following rules: