17#if JSON_HAS_THREE_WAY_COMPARISON 
   80#if JSON_HAS_THREE_WAY_COMPARISON 
   81    inline std::partial_ordering operator<=>(
const value_t lhs, 
const value_t rhs) 
noexcept  
   86    static constexpr std::array<std::uint8_t, 9> order = {{
 
   93    const auto l_index = 
static_cast<std::size_t
>(lhs);
 
   94    const auto r_index = 
static_cast<std::size_t
>(rhs);
 
   95#if JSON_HAS_THREE_WAY_COMPARISON 
   96    if (l_index < order.size() && r_index < order.size())
 
   98        return order[l_index] <=> order[r_index]; 
 
  100    return std::partial_ordering::unordered;
 
  102    return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
 
 
  110#if JSON_HAS_THREE_WAY_COMPARISON && defined(__GNUC__) 
  113    return std::is_lt(lhs <=> rhs); 
 
#define WPI_JSON_NAMESPACE_END
Definition abi_macros.h:59
#define WPI_JSON_NAMESPACE_BEGIN
Definition abi_macros.h:53
detail namespace with internal helper functions
Definition input_adapters.h:32
value_t
the JSON type enumeration
Definition value_t.h:54
@ number_integer
number value (signed integer)
@ discarded
discarded by the parser callback function
@ binary
binary array (ordered collection of bytes)
@ object
object (unordered set of name/value pairs)
@ number_float
number value (floating-point)
@ number_unsigned
number value (unsigned integer)
@ array
array (ordered collection of values)
bool operator<(const value_t lhs, const value_t rhs) noexcept
comparison operator for JSON types
Definition value_t.h:83