iw4x-client/deps/json/docs/examples/default_object_comparator_t.cpp
2024-03-07 05:13:50 -05:00

12 lines
325 B
C++

#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha
<< "one < two : " << json::default_object_comparator_t{}("one", "two") << "\n"
<< "three < four : " << json::default_object_comparator_t{}("three", "four") << std::endl;
}