Skip to content

Commit

Permalink
Deployed 8cd092c to main with MkDocs 1.6.1 and mike 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2024
1 parent 5231182 commit bc33d5e
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 55 deletions.
2 changes: 1 addition & 1 deletion main/alternatives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,7 @@ <h3 id="library-features">Library features<a class="headerlink" href="#library-f
<li>Only one user-facing macro for C++20 backwards compatibility</li>
</ul>
</td>
<td class="best">No macros</td>
<td class="best">Zero user-facing macros; only two internal macros</td>
</tr>
</table>

Expand Down
20 changes: 19 additions & 1 deletion main/au.hh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <type_traits>
#include <utility>

// Version identifier: 0.3.5-58-g1b72b87
// Version identifier: 0.3.5-59-g8cd092c
// <iostream> support: INCLUDED
// List of included units:
// amperes
Expand Down Expand Up @@ -5639,6 +5639,15 @@ constexpr auto operator>=(QLike q1, Quantity<U, R> q2) -> decltype(as_quantity(q
return as_quantity(q1) >= q2;
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const Quantity<U1, R1> &lhs, const Quantity<U2, R2> &rhs) {
using U = CommonUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

// Helper to compute the `std::common_type_t` of two `Quantity` types.
//
// `std::common_type` requires its specializations to be SFINAE-friendly, meaning that the `type`
Expand Down Expand Up @@ -6335,6 +6344,15 @@ constexpr auto operator-(QuantityPoint<U1, R1> p1, QuantityPoint<U2, R2> p2) {
return detail::using_common_point_unit(p1, p2, detail::minus);
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const QuantityPoint<U1, R1> &lhs, const QuantityPoint<U2, R2> &rhs) {
using U = CommonPointUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

namespace detail {

template <typename TargetRep, typename U, typename R>
Expand Down
20 changes: 19 additions & 1 deletion main/au_all_units.hh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <type_traits>
#include <utility>

// Version identifier: 0.3.5-58-g1b72b87
// Version identifier: 0.3.5-59-g8cd092c
// <iostream> support: INCLUDED
// List of included units:
// amperes
Expand Down Expand Up @@ -5951,6 +5951,15 @@ constexpr auto operator>=(QLike q1, Quantity<U, R> q2) -> decltype(as_quantity(q
return as_quantity(q1) >= q2;
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const Quantity<U1, R1> &lhs, const Quantity<U2, R2> &rhs) {
using U = CommonUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

// Helper to compute the `std::common_type_t` of two `Quantity` types.
//
// `std::common_type` requires its specializations to be SFINAE-friendly, meaning that the `type`
Expand Down Expand Up @@ -6647,6 +6656,15 @@ constexpr auto operator-(QuantityPoint<U1, R1> p1, QuantityPoint<U2, R2> p2) {
return detail::using_common_point_unit(p1, p2, detail::minus);
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const QuantityPoint<U1, R1> &lhs, const QuantityPoint<U2, R2> &rhs) {
using U = CommonPointUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

namespace detail {

template <typename TargetRep, typename U, typename R>
Expand Down
20 changes: 19 additions & 1 deletion main/au_all_units_noio.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <type_traits>
#include <utility>

// Version identifier: 0.3.5-58-g1b72b87
// Version identifier: 0.3.5-59-g8cd092c
// <iostream> support: EXCLUDED
// List of included units:
// amperes
Expand Down Expand Up @@ -5950,6 +5950,15 @@ constexpr auto operator>=(QLike q1, Quantity<U, R> q2) -> decltype(as_quantity(q
return as_quantity(q1) >= q2;
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const Quantity<U1, R1> &lhs, const Quantity<U2, R2> &rhs) {
using U = CommonUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

// Helper to compute the `std::common_type_t` of two `Quantity` types.
//
// `std::common_type` requires its specializations to be SFINAE-friendly, meaning that the `type`
Expand Down Expand Up @@ -6329,6 +6338,15 @@ constexpr auto operator-(QuantityPoint<U1, R1> p1, QuantityPoint<U2, R2> p2) {
return detail::using_common_point_unit(p1, p2, detail::minus);
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const QuantityPoint<U1, R1> &lhs, const QuantityPoint<U2, R2> &rhs) {
using U = CommonPointUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

namespace detail {

template <typename TargetRep, typename U, typename R>
Expand Down
20 changes: 19 additions & 1 deletion main/au_noio.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <type_traits>
#include <utility>

// Version identifier: 0.3.5-58-g1b72b87
// Version identifier: 0.3.5-59-g8cd092c
// <iostream> support: EXCLUDED
// List of included units:
// amperes
Expand Down Expand Up @@ -5638,6 +5638,15 @@ constexpr auto operator>=(QLike q1, Quantity<U, R> q2) -> decltype(as_quantity(q
return as_quantity(q1) >= q2;
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const Quantity<U1, R1> &lhs, const Quantity<U2, R2> &rhs) {
using U = CommonUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

// Helper to compute the `std::common_type_t` of two `Quantity` types.
//
// `std::common_type` requires its specializations to be SFINAE-friendly, meaning that the `type`
Expand Down Expand Up @@ -6221,6 +6230,15 @@ constexpr auto operator-(QuantityPoint<U1, R1> p1, QuantityPoint<U2, R2> p2) {
return detail::using_common_point_unit(p1, p2, detail::minus);
}

// Spaceship operator provides C++20 compatibility.
#if __cplusplus >= 202002L
template <typename U1, typename R1, typename U2, typename R2>
constexpr auto operator<=>(const QuantityPoint<U1, R1> &lhs, const QuantityPoint<U2, R2> &rhs) {
using U = CommonPointUnitT<U1, U2>;
return lhs.in(U{}) <=> rhs.in(U{});
}
#endif

namespace detail {

template <typename TargetRep, typename U, typename R>
Expand Down
2 changes: 1 addition & 1 deletion main/search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit bc33d5e

Please sign in to comment.