Buckets:
| using json = nlohmann::json; | |
| int main() | |
| { | |
| // create JSON values | |
| json object = {{"one", 1}, {"two", 2}}; | |
| json null; | |
| // print values | |
| std::cout << object << '\n'; | |
| std::cout << null << '\n'; | |
| // add values | |
| auto res1 = object.emplace("three", 3); | |
| null.emplace("A", "a"); | |
| null.emplace("B", "b"); | |
| // the following call will not add an object, because there is already | |
| // a value stored at key "B" | |
| auto res2 = null.emplace("B", "c"); | |
| // print values | |
| std::cout << object << '\n'; | |
| std::cout << *res1.first << " " << std::boolalpha << res1.second << '\n'; | |
| std::cout << null << '\n'; | |
| std::cout << *res2.first << " " << std::boolalpha << res2.second << '\n'; | |
| } | |
Xet Storage Details
- Size:
- 775 Bytes
- Xet hash:
- 862fd53762b6d60f3f64a2de3f83d7535fa51c6755a1163a3c9eef25fc2cd203
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.