h1-mod/deps/json/docs/examples/default_object_comparator_t.cpp

12 lines
325 B
C++
Raw Normal View History

2024-03-07 00:54:15 -05:00
#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;
}