69 static constexpr std::array<std::uint8_t, 9> order = {{
76 const auto l_index =
static_cast<std::size_t
>(lhs);
77 const auto r_index =
static_cast<std::size_t
>(rhs);
78 return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index];
detail namespace with internal helper functions
Definition from_json.hpp:25
bool operator<(const value_t lhs, const value_t rhs) noexcept
comparison operator for JSON types
Definition value_t.hpp:67
value_t
the JSON type enumeration
Definition value_t.hpp:41
@ null
null value
Definition value_t.hpp:42
@ number_integer
number value (signed integer)
Definition value_t.hpp:47
@ boolean
boolean value
Definition value_t.hpp:46
@ discarded
discarded by the parser callback function
Definition value_t.hpp:51
@ binary
binary array (ordered collection of bytes)
Definition value_t.hpp:50
@ string
string value
Definition value_t.hpp:45
@ number_float
number value (floating-point)
Definition value_t.hpp:49
@ number_unsigned
number value (unsigned integer)
Definition value_t.hpp:48
@ array
array (ordered collection of values)
Definition value_t.hpp:44
namespace for Niels Lohmann
Definition adl_serializer.hpp:12