diff --git a/docs/mkdocs/docs/api/basic_json/operator_eq.md b/docs/mkdocs/docs/api/basic_json/operator_eq.md index 58a7e74da..006b1ac4c 100644 --- a/docs/mkdocs/docs/api/basic_json/operator_eq.md +++ b/docs/mkdocs/docs/api/basic_json/operator_eq.md @@ -11,12 +11,10 @@ template bool operator==(ScalarType lhs, const const_reference rhs) noexcept(/* see below */); // (2) // since C++20 -class basic_json { - bool operator==(const_reference rhs) const noexcept; // (1) +bool operator==(const_reference rhs) const noexcept; // (1) - template - bool operator==(ScalarType rhs) const noexcept(/* see below */); // (2) -}; +template +bool operator==(ScalarType rhs) const noexcept(/* see below */); // (2) ``` 1. Compares two JSON values for equality according to the following rules: diff --git a/docs/mkdocs/docs/api/basic_json/operator_spaceship.md b/docs/mkdocs/docs/api/basic_json/operator_spaceship.md index 47ca22484..73c831e84 100644 --- a/docs/mkdocs/docs/api/basic_json/operator_spaceship.md +++ b/docs/mkdocs/docs/api/basic_json/operator_spaceship.md @@ -2,12 +2,10 @@ ```cpp // 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 - std::partial_ordering operator<=>(const ScalarType rhs) const noexcept(/* see below */); // (2) -}; +template +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: