Squashed 'external/json/' content from commit 9cca280a4
git-subtree-dir: external/json git-subtree-split: 9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03
This commit is contained in:
16
docs/examples/operator__equal__specializations.cpp
Normal file
16
docs/examples/operator__equal__specializations.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
nlohmann::json uj1 = {{"version", 1}, {"type", "integer"}};
|
||||
nlohmann::json uj2 = {{"type", "integer"}, {"version", 1}};
|
||||
|
||||
nlohmann::ordered_json oj1 = {{"version", 1}, {"type", "integer"}};
|
||||
nlohmann::ordered_json oj2 = {{"type", "integer"}, {"version", 1}};
|
||||
|
||||
std::cout << std::boolalpha << (uj1 == uj2) << '\n' << (oj1 == oj2) << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user