Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
e4e666f459
4563 changed files with 1690372 additions and 0 deletions
14
thirdparty/json/docs/examples/operator_literal_json_pointer.cpp
vendored
Normal file
14
thirdparty/json/docs/examples/operator_literal_json_pointer.cpp
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
using namespace nlohmann::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
json j = R"( {"hello": "world", "answer": 42} )"_json;
|
||||
auto val = j["/hello"_json_pointer];
|
||||
|
||||
std::cout << std::setw(2) << val << '\n';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue