mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 10:45:50 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			849d447a20
			...
			spaceship
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					a4e6dd2d3e | ||
| 
						 | 
					e305c6b52a | 
@@ -549,7 +549,8 @@ using uint128 = base_uint<128>;
 | 
			
		||||
using uint160 = base_uint<160>;
 | 
			
		||||
using uint256 = base_uint<256>;
 | 
			
		||||
 | 
			
		||||
template <std::size_t Bits, class Tag>
 | 
			
		||||
/*
 | 
			
		||||
 * template <std::size_t Bits, class Tag>
 | 
			
		||||
[[nodiscard]] inline constexpr std::strong_ordering
 | 
			
		||||
operator<=>(base_uint<Bits, Tag> const& lhs, base_uint<Bits, Tag> const& rhs)
 | 
			
		||||
{
 | 
			
		||||
@@ -570,6 +571,19 @@ operator<=>(base_uint<Bits, Tag> const& lhs, base_uint<Bits, Tag> const& rhs)
 | 
			
		||||
    return (*ret.first > *ret.second) ? std::strong_ordering::greater
 | 
			
		||||
                                      : std::strong_ordering::less;
 | 
			
		||||
}
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
template <std::size_t Bits, class Tag>
 | 
			
		||||
[[nodiscard]] inline constexpr std::strong_ordering
 | 
			
		||||
operator<=>(base_uint<Bits, Tag> const& lhs, base_uint<Bits, Tag> const& rhs)
 | 
			
		||||
{
 | 
			
		||||
    return std::lexicographical_compare_three_way(
 | 
			
		||||
        lhs.cbegin(),
 | 
			
		||||
        lhs.cend(),
 | 
			
		||||
        rhs.cbegin(),
 | 
			
		||||
        rhs.cend(),
 | 
			
		||||
        std::compare_three_way{});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template <std::size_t Bits, typename Tag>
 | 
			
		||||
[[nodiscard]] inline constexpr bool
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user