json/docs/examples/object_comparator_t.cpp

12 lines
309 B
C++
Raw Normal View History

2022-05-08 17:53:18 +03:00
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha
<< "one < two : " << json::object_comparator_t{}("one", "two") << "\n"
<< "three < four : " << json::object_comparator_t{}("three", "four") << std::endl;
}