From 938d232a8fe97f9491180a795d773b3ab6c67093 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 24 Jun 2015 15:17:59 +0200 Subject: [PATCH] Update --- Nodes.xml | 24 +- Tokens.xml | 34 +- annotated.html | 2 +- classes.html | 2 +- classnlohmann_1_1basic__json-members.html | 12 +- classnlohmann_1_1basic__json.html | 26 +- ...asic__json_1_1const__iterator-members.html | 2 +- ...ann_1_1basic__json_1_1const__iterator.html | 2 +- ...tor_a019087161350d393f3e4ac841cdd3dbd.html | 2 +- ...tor_a17e5f5d3598e6901f3c1c1f7dc60589f.html | 2 +- ...tor_a1cba94e5a67ee52bc66b898a4e08359d.html | 2 +- ...tor_a301749e9779adafd395369ac36df93df.html | 2 +- ...tor_a3555206044cce80680f3ea662760e561.html | 2 +- ...tor_a36086a699b95e06976c11367b7d6ba53.html | 2 +- ...tor_a4632d8307fc315f21e2ecc9ba5aa6346.html | 2 +- ...tor_a4f7ac43b0ab34c387b1ae1a8e9c08467.html | 2 +- ...tor_a62cad59e006eb7fa594c2c5b65a76610.html | 2 +- ...tor_a67848d4b7bfa576434ad9807147b5870.html | 2 +- ...tor_a6b3e43d2f45fa611825dbdf4e88fffe2.html | 2 +- ...tor_a86a1771e6658d0b14868df6c197d2353.html | 2 +- ...tor_a8d024cbc99db0d8106899f9fd9973735.html | 2 +- ...tor_aa30f18484c63166246f8eec30a7984bc.html | 2 +- ...tor_aaf7158f62951acb046b867316be0fb97.html | 2 +- ...tor_ab74b39747a9dad60650a57133fca85b3.html | 2 +- ...tor_ab7dacd8e3ee9b3756bfcdb87dd55a515.html | 2 +- ...tor_ab9d31bf0d0b4d7310c858a04ce84a52f.html | 2 +- ...tor_abb1921cbf0ad4036c83bc6303e22171f.html | 2 +- ...tor_abbacd95955c602efc9a58ed1ffdb46c4.html | 2 +- ...tor_ac36b9187de43721a4bf1b052578bb80b.html | 2 +- ...tor_ac634a659837f5aebc97125e031de23b5.html | 2 +- ...tor_acea5b75d1087e2a92833946d9dc547ff.html | 2 +- ...tor_ada3100cdb8700566051828f1355fa745.html | 2 +- ...tor_adb50d6043ace464d9f694869724d7fb2.html | 2 +- ...tor_adda9a4bd7f0edb9cb39dc0dca3d4a286.html | 2 +- ...tor_adf6f9d3f8f8d8b1ccedabb4f04c098ad.html | 2 +- ...tor_ae480d5c86e5e1129d53d1e19782017a6.html | 2 +- ...tor_aebd099d9a70ffe760242ef24046c9002.html | 2 +- ...tor_af34f68f1ce670e7f25ce267b2b1e64ab.html | 2 +- ...tor_af55564e391b23e41abe78bc4bbe4edcb.html | 2 +- ...n_1_1const__reverse__iterator-members.html | 2 +- ...sic__json_1_1const__reverse__iterator.html | 2 +- ...tor_a31fc105e72c0e8b19eda11495fd3af3f.html | 2 +- ...tor_a7eb11a5029b7ffff32fdea5f082493c2.html | 2 +- ...tor_a8ba3f75a7ec557eec19b7513e2924219.html | 2 +- ...nn_1_1basic__json_1_1iterator-members.html | 2 +- classnlohmann_1_1basic__json_1_1iterator.html | 2 +- ...tor_a037e5f3de196ff4cea8a95a8a4e35882.html | 2 +- ...tor_a0a43bd93e6e46645ed0b93d3af7bfe22.html | 2 +- ...tor_a0c0acb68cc2a50a0e8782f860184883f.html | 2 +- ...tor_a1220b360a07b0605f7d2f4b3cfd16736.html | 2 +- ...tor_a21d32a4547ba4cbadd8b435a6a0d0e1b.html | 2 +- ...tor_a302d810a0685f8d39368eaa65c833acf.html | 2 +- ...tor_a33277dbf06ac5c1e7102e26f6b5e2c00.html | 2 +- ...tor_a46bae6328cd653d64b4569b1c8e63d58.html | 2 +- ...tor_a4ae612fa9eb59784047b40f0419db65d.html | 2 +- ...tor_a4f6e03ae3bb674ebf0b727f74957c12f.html | 2 +- ...tor_a545c6a8a714e4ab23a28e73d45ad068c.html | 2 +- ...tor_a7031e759ee52d1283aada0ff81108a5e.html | 2 +- ...tor_a7286981657d115cc8803d14b28874ab3.html | 2 +- ...tor_a75d68bfd97f26133dbeebb4fb49379fd.html | 2 +- ...tor_a799627115ae852c4bb9ca2042ce0aa94.html | 2 +- ...tor_a83b095887d17e0351f8be616764ac455.html | 2 +- ...tor_a903462b9290e1bde30716f9e14d9d3df.html | 2 +- ...tor_a94285e2ade0bfef829b81377bbbca6cf.html | 2 +- ...tor_a9fcfda575b08d0c73b6274cdbbe7f184.html | 2 +- ...tor_aa2bd10afdcfc70acb8eaabbd2f6496f0.html | 2 +- ...tor_ab220a0cc3fe410fbae4524208bd5834f.html | 2 +- ...tor_ab5cf753cb2f8ce53b9f3e54c39e50ee3.html | 2 +- ...tor_ac01e258f97612d7f7766f92324e5612a.html | 2 +- ...tor_ac17f1d9d40b6b928a4964ce97a443c6e.html | 2 +- ...tor_acf3df244524244ed5c2923c11427e3da.html | 2 +- ...tor_ad35cf47e2fb5918dc06260eda3dcd35d.html | 2 +- ...tor_ad58453e21f157edfeaaff13e9560724b.html | 2 +- ...tor_ada3100cdb8700566051828f1355fa745.html | 2 +- ...tor_ae58eb251e2ca9b5c9d522f25fa67eb36.html | 2 +- ...tor_afe65b5a0572c7bfdd7ccc942bb8e9fe2.html | 2 +- ...ic__json_1_1reverse__iterator-members.html | 2 +- ...n_1_1basic__json_1_1reverse__iterator.html | 2 +- ...tor_a514d7a82f1c8f1862acfefe8d16c6ca6.html | 2 +- ...tor_ae711bdc24d54870a560550fc21c11f46.html | 2 +- ...tor_af3029b8b16518b9da0b4cd3be98ef2c1.html | 2 +- ...son_a01a2643289b69cd71d9b3f3fc209b748.html | 8 +- ...son_a034bccea9f5400650443e9f12e67b079.html | 8 +- ...son_a058be74840ddfec9dad9755ac8dc8b99.html | 8 +- ...son_a0998ed4a76d1e5048fd043475eb7bfde.html | 10 +- ...son_a0a7560122349628cf4942a316aa6d21f.html | 8 +- ...son_a0a9c6a1fccc4db365860463e8203eb38.html | 8 +- ...son_a0bb6ea56c89560cce8003485bffe49d4.html | 8 +- ...son_a0e372f4c5a90c6be7242a2d7a3709b48.html | 8 +- ...son_a122640e7e2db1814fc7bbb3c122ec76e.html | 8 +- ...son_a13e5642dbfa1602c937d295a085413cc.html | 8 +- ...son_a15e468968cd4d0e4fd566044d66ada24.html | 8 +- ...son_a16a275d0201e9aedc87c933c764b8869.html | 10 +- ...son_a190d719446e7016879c4b961c9cf9072.html | 8 +- ...son_a1f6b988271c56e3b9d5d33166154fdb6.html | 8 +- ...son_a231b02148577b69a154b2ce2c87a5522.html | 8 +- ...son_a23a1bd619b2ec24de10b726750f09051.html | 251 +++++++++++++ ...son_a2448b2777e8a3e48614e1b3c41b96f7c.html | 8 +- ...son_a266c4dd24d11a86e4831523af5d9df4d.html | 8 +- ...son_a2759c64550285b6316fe76d76460d32e.html | 12 +- ...son_a2bb1b109282149119a070be4ac76f820.html | 8 +- ...son_a2efda2b6d931ee72d9757418042e74e1.html | 289 +++++++++++++++ ...son_a31af4b416e9ccb373291a645da7f83d7.html | 8 +- ...son_a33f1632cfdbf460b4913f4e8a43dd9e4.html | 8 +- ...son_a34d6a60dd99e9f33b8273a1c8db5669b.html | 8 +- ...son_a3e49eea90db1cba32ee86a7644a7f05b.html | 12 +- ...son_a429c2606865483ff357cccc1b1c46569.html | 8 +- ...son_a444d8376d63d7a5edb85f33bc5976c14.html | 10 +- ...son_a46f149c14e807916a90037557ccfcffa.html | 8 +- ...son_a4be3b72fd7f949a0695d08300a258a06.html | 8 +- ...son_a4bf695ddf4a00ea8feea2c725ec847f1.html | 8 +- ...son_a53590b99e380c464a83a0a5edf6da9ab.html | 8 +- ...son_a53a07f52c7a3bb49282f1a8bc213ed84.html | 251 +++++++++++++ ...son_a572cdf681c75b42c2bc38a1fbe993eca.html | 10 +- ...son_a57703688bee6b9736ab3a430d8d246f2.html | 8 +- ...son_a57a96ab3ff1ce7b48a754129fb12c982.html | 8 +- ...son_a5a2d4dbcdbc8ea065b87daf52cd786b9.html | 8 +- ...son_a5a2d66582b75e0301d37886137c6953c.html | 290 +++++++++++++++ ...son_a5c8bb5200f5eac10d31e26be46e5b1ac.html | 8 +- ...son_a5e34c5435e557d0bf666bd7311211405.html | 8 +- ...son_a5f0aad50ed7e8aec3128fe018c18b3fe.html | 333 ++++++++++++++++++ ...son_a5fd8b54389698edf0c08e2dd001f610b.html | 8 +- ...son_a60ca396028b8d9714c6e10efbf475af6.html | 8 +- ...son_a62136b62f0ec60c0f2b5a3ce9aaa19b4.html | 8 +- ...son_a63691315292df8e1522b00d37ebb1ffc.html | 8 +- ...son_a652414dd930cb3af3b6f454cc535a23e.html | 10 +- ...son_a656939a3dc9a6047e4afacd9e11b83a6.html | 291 +++++++++++++++ ...son_a677297e84beb0f13cbd55525cf523e01.html | 12 +- ...son_a6944904b3b59769b1cf62ac2532cbe33.html | 8 +- ...son_a6a67c72ba65322bfcb28d170617dcdff.html | 8 +- ...son_a6a7f45095675ac6fd1d018a0e41874be.html | 14 +- ...son_a6bbd3e72a870f1ba81ff6886b063b0fe.html | 8 +- ...son_a6ca7995d600593954a7a498f5c0b1a7e.html | 251 +++++++++++++ ...son_a6dff6a02a2be250b8f8dc2f47be65544.html | 8 +- ...son_a6e2e21da48f5d9471716cd868a068327.html | 8 +- ...son_a749e58042d8069f4f048ee4d23c43f63.html | 8 +- ...son_a74a943800c7f103d0990d7eef82c6453.html | 8 +- ...son_a74ccfa471a0c061876b247f820f3c741.html | 14 +- ...son_a793e5c1da2fc7de7a04b19eadbb3f2cb.html | 8 +- ...son_a7c19a5c3be6cc755377ee41eade78baf.html | 8 +- ...son_a7d0db3b728d820d4984df78d97d2b104.html | 8 +- ...son_a7d1b990f2c12fecb57db1504fdadd0bb.html | 8 +- ...son_a7dab69b10b98e7bc694339720e37fb2b.html | 8 +- ...son_a80a89ddbe4cb7ef15b049febee208cc8.html | 8 +- ...son_a80ceaa3bdd346292273b309e08525c1c.html | 8 +- ...son_a83cbbfbf5d3ecbad6de8ece0be6b36c4.html | 10 +- ...son_a87698fe3ae2652b3ad5eab1b717fee5f.html | 8 +- ...son_a879007de260e6a128fbbce4e78c804af.html | 12 +- ...son_a87db51b6b936fb2ea293cdbc8702dcb8.html | 8 +- ...son_a8b526709d395142b68d21abfbfff17c3.html | 10 +- ...son_a8c40cd9ead4de7c82f28268bdf0ec98a.html | 10 +- ...son_a8e34088252a3ee6b2377f3a1f26dd1ba.html | 8 +- ...son_a930e14150ffa067bcf56d35cb00271e1.html | 8 +- ...son_a951a76ba057b3be948e7ba5c2c01cd5a.html | 8 +- ...son_a9a91e05cbc516623fa61e253f920e42e.html | 84 ++++- ...son_a9daafb4c15ed5a008cb825bbd8c29d87.html | 8 +- ...son_a9dc1b1d2c71b1253b0dec3c5f9217057.html | 289 +++++++++++++++ ...son_aa1f3b3f1dca79392d6727b81f9668c6c.html | 10 +- ...son_aa23ac5808b9aa1a08d18e3ebea25c7ce.html | 8 +- ...son_aa366948498c70661eac025a841507db9.html | 12 +- ...son_aa5a06ef7009d3a8c72cc173f1f5da760.html | 8 +- ...son_aa70eb86b6e6ada371d95adb7d171c2af.html | 12 +- ...son_aa71e977d31f470689883ac60d16ea4ac.html | 10 +- ...son_aa87c30bfeaa395f12bb101934395a637.html | 8 +- ...son_aa8e533b4290ade5bf5a33104a69b202a.html | 8 +- ...son_aac185a137428a7337aa620de07bfbbd7.html | 8 +- ...son_aacd442b66140c764c594ac8ad7dfd5b3.html | 8 +- ...son_aacf6c869f6a9c66ac1bc99e93f310044.html | 8 +- ...son_aaf363408931d76472ded14017e59c9e8.html | 8 +- ...son_aafa839f2a74dc1b5060314b3423143b8.html | 8 +- ...son_ab3a3c6547a2ea16d33879a50dfaad337.html | 331 +++++++++++++++++ ...son_ab8682827348d8eb61507bbe8c7829ce8.html | 8 +- ...son_ab9da2afc6f77295f25252725fde142a6.html | 10 +- ...son_abb086fd840bedb05e0aee67f70eba1a9.html | 8 +- ...son_abc2b49c2c44c61a15d4b272a85b41064.html | 8 +- ...son_ac4011bd0781e51afe4994d2b09fd27e9.html | 8 +- ...son_ac82abedf356d252e0589850c3d8b35ba.html | 8 +- ...son_ac943391891fcde0a71a15ce990e0f7f4.html | 8 +- ...son_acbf7f957ecb6ce19cdc5b40b5d6b6333.html | 8 +- ...son_ace5106fb70f029fd7dfe99fc9eace3b5.html | 12 +- ...son_ace8338e57fdb11e1955c2a0c2d782069.html | 8 +- ...son_ad1fea64ed433a6f4e7408c8c7bbc4a37.html | 8 +- ...son_ad2c4513cef5d8db760c4b2d871eea42c.html | 8 +- ...son_ad62e88e5c60e03e094e6250f6bb2f9cf.html | 12 +- ...son_ad7067a1a8ad2d88125915ada6d4d79b7.html | 8 +- ...son_ad7b898eb39e6e6c1cc870dde1f9517f0.html | 12 +- ...son_ad7f7033fb309043a218572ea55797f40.html | 261 ++++++++++++++ ...son_ad81f3cedf09ccd70b2f3239d148c8752.html | 8 +- ...son_ad8f84e6fb9bbf9a7bc767962ad0fe3a1.html | 12 +- ...son_ad9d11a509fde101780017c73d1d5f34c.html | 329 +++++++++++++++++ ...son_ada8e01109a60088e4db2a670d4903b54.html | 10 +- ...son_adbd4c16c9ac641b2a4736bc2c6787d83.html | 8 +- ...son_add77b50f69debb20e98d5a8c6c11c90c.html | 10 +- ...son_ae2980ed978451f844e6e9a0890b637a6.html | 8 +- ...son_ae42d32c34c8014b1bf677fdb7baa5401.html | 8 +- ...son_ae50f22a1c646b8627e88f1313cceffd4.html | 292 +++++++++++++++ ...son_ae5dc3be56fdd8244973c3e3790769ad0.html | 12 +- ...son_ae928414b2805cf6ef56b4e4f8d235416.html | 8 +- ...son_ae960d2d6bc7b94fe39cc5e9f106edfa9.html | 10 +- ...son_aea1c863b719b4ca5b77188c171bbfafe.html | 8 +- ...son_aeda4ec7473c17fae51e6d1eba0faf720.html | 8 +- ...son_af2730bc8ffa6b28916875c13ee7b83f5.html | 12 +- ...son_af3abeeb0e9676de8bc2d6aa6f6c0d6c6.html | 8 +- ...son_af4261341695729a8e657b94772f95516.html | 12 +- ...son_af49c37bbda87f36170c67f960db3781a.html | 10 +- ...son_af6b6050ccd906dddf7c9f47fe3ad62a5.html | 10 +- ...son_af70222eb312ca0a44cd7d793b1516e2e.html | 8 +- ...son_af709c079de0ac3507143ea2c60699bd0.html | 329 +++++++++++++++++ ...son_af74581d177dafc38df5a126ccd358999.html | 8 +- ...son_af93e556bf708cb81b22ce223af1aa727.html | 8 +- ...son_afb19d4669daf3c4347763f043471b835.html | 10 +- ...son_afb9664e6f30038e691f2e864e7f6a740.html | 8 +- dir_68267d1309a1af8e8297ef4c3efbcdba.html | 2 +- functions.html | 2 +- functions_a.html | 2 +- functions_b.html | 2 +- functions_c.html | 2 +- functions_d.html | 2 +- functions_e.html | 2 +- functions_enum.html | 2 +- functions_f.html | 2 +- functions_func.html | 13 +- functions_g.html | 7 +- functions_i.html | 2 +- functions_j.html | 2 +- functions_k.html | 2 +- functions_l.html | 2 +- functions_m.html | 2 +- functions_n.html | 2 +- functions_o.html | 8 +- functions_p.html | 2 +- functions_r.html | 2 +- functions_rela.html | 2 +- functions_s.html | 2 +- functions_t.html | 2 +- functions_type.html | 2 +- functions_v.html | 2 +- functions_vars.html | 2 +- functions_~.html | 2 +- graph_legend.html | 2 +- hierarchy.html | 2 +- index.html | 2 +- namespacemembers.html | 2 +- namespacemembers_type.html | 2 +- namespacenlohmann.html | 2 +- ...ann_a2bfd99e845a2e5cd90aeaf1b1431f474.html | 2 +- pages.html | 2 +- search/all_7.js | 5 +- search/all_f.js | 2 +- search/functions_6.js | 5 +- search/functions_b.js | 2 +- ...ash_3_01nlohmann_1_1json_01_4-members.html | 2 +- ...std_1_1hash_3_01nlohmann_1_1json_01_4.html | 2 +- ...1_4_afd03f6ad53db22868ca4163a8200b2f9.html | 2 +- todo.html | 2 +- ...1_1basic__json_1_1json__value-members.html | 2 +- ...lohmann_1_1basic__json_1_1json__value.html | 2 +- ...lue_a10dd4f2f978cdcbb3be850dc8f3351d6.html | 2 +- ...lue_a231c96961c674bebfb14d3f50bb57703.html | 2 +- ...lue_a329c53042b9ba5c73512da4c780f2f2c.html | 2 +- ...lue_a3a2fa91f7daaca8a07963755eea1580d.html | 2 +- ...lue_a4351a2387d3eef1c1ecea5c9c8efb92d.html | 2 +- ...lue_a4ff9894ccb1eca08ba1c49eec70ee2f5.html | 2 +- ...lue_a592a4d5dfca10aa2bf033641b9ee050f.html | 2 +- ...lue_a874e1bed30eee7847d34d8f410114cbc.html | 2 +- ...lue_a9b0c0f7dc2ddb9fa9101a287b233a8b2.html | 2 +- ...lue_a9bd260b1ff2f03572dcc84c179a6a37c.html | 2 +- ...lue_ab2c1e8a4ef5293eb86e9a6c03fbb5610.html | 2 +- ...lue_ac051d54557c5cf079925b810c0e16e1e.html | 2 +- ...lue_ac6fa840d0f9cefd1f064e371a369d3bf.html | 2 +- ...lue_af432b12c2a45a123ae7404588d889af7.html | 2 +- 271 files changed, 4727 insertions(+), 574 deletions(-) create mode 100644 classnlohmann_1_1basic__json_a23a1bd619b2ec24de10b726750f09051.html create mode 100644 classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html create mode 100644 classnlohmann_1_1basic__json_a53a07f52c7a3bb49282f1a8bc213ed84.html create mode 100644 classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html create mode 100644 classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html create mode 100644 classnlohmann_1_1basic__json_a656939a3dc9a6047e4afacd9e11b83a6.html create mode 100644 classnlohmann_1_1basic__json_a6ca7995d600593954a7a498f5c0b1a7e.html create mode 100644 classnlohmann_1_1basic__json_a9dc1b1d2c71b1253b0dec3c5f9217057.html create mode 100644 classnlohmann_1_1basic__json_ab3a3c6547a2ea16d33879a50dfaad337.html create mode 100644 classnlohmann_1_1basic__json_ad7f7033fb309043a218572ea55797f40.html create mode 100644 classnlohmann_1_1basic__json_ad9d11a509fde101780017c73d1d5f34c.html create mode 100644 classnlohmann_1_1basic__json_ae50f22a1c646b8627e88f1313cceffd4.html create mode 100644 classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html diff --git a/Nodes.xml b/Nodes.xml index b789fca16..65879cee2 100644 --- a/Nodes.xml +++ b/Nodes.xml @@ -890,14 +890,24 @@ get - classnlohmann_1_1basic__json_a70be72c27e1ca0af77335585a8cec1ed.html - a70be72c27e1ca0af77335585a8cec1ed + classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html + a5f0aad50ed7e8aec3128fe018c18b3fe + + + get + classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html + a5a2d66582b75e0301d37886137c6953c get_allocator classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html ad2c4513cef5d8db760c4b2d871eea42c + + get_ptr + classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html + a2efda2b6d931ee72d9757418042e74e1 + is_array classnlohmann_1_1basic__json_af70222eb312ca0a44cd7d793b1516e2e.html @@ -953,16 +963,16 @@ classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html afb9664e6f30038e691f2e864e7f6a740 - - operator T - classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html - a9a91e05cbc516623fa61e253f920e42e - operator value_t classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html a31af4b416e9ccb373291a645da7f83d7 + + operator ValueType + classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html + af709c079de0ac3507143ea2c60699bd0 + operator+= classnlohmann_1_1basic__json_a6a67c72ba65322bfcb28d170617dcdff.html diff --git a/Tokens.xml b/Tokens.xml index 9ad903fd5..94a535bdf 100644 --- a/Tokens.xml +++ b/Tokens.xml @@ -652,20 +652,44 @@ instm nlohmann::basic_json - classnlohmann_1_1basic__json_a70be72c27e1ca0af77335585a8cec1ed.html - a70be72c27e1ca0af77335585a8cec1ed + classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html + a5f0aad50ed7e8aec3128fe018c18b3fe get a value (explicit) json.hpp - operator T + get cpp instm nlohmann::basic_json - classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html - a9a91e05cbc516623fa61e253f920e42e + classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html + a5a2d66582b75e0301d37886137c6953c + get a pointer value (explicit) + json.hpp + + + + get_ptr + cpp + instm + nlohmann::basic_json + + classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html + a2efda2b6d931ee72d9757418042e74e1 + get a pointer value (implicit) + json.hpp + + + + operator ValueType + cpp + instm + nlohmann::basic_json + + classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html + af709c079de0ac3507143ea2c60699bd0 get a value (implicit) json.hpp diff --git a/annotated.html b/annotated.html index 643e2e239..bdbb293c6 100644 --- a/annotated.html +++ b/annotated.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classes.html b/classes.html index 7bb133b17..be4dd113a 100644 --- a/classes.html +++ b/classes.html @@ -108,7 +108,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json-members.html b/classnlohmann_1_1basic__json-members.html index 9e5a9466f..500021867 100644 --- a/classnlohmann_1_1basic__json-members.html +++ b/classnlohmann_1_1basic__json-members.html @@ -150,8 +150,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find(typename object_t::key_type key) const nlohmann::basic_jsoninline front()nlohmann::basic_jsoninline front() const nlohmann::basic_jsoninline - get() const nlohmann::basic_jsoninline - get_allocator()nlohmann::basic_jsoninlinestatic + get() const nlohmann::basic_jsoninline + get() const noexceptnlohmann::basic_jsoninline + get_allocator()nlohmann::basic_jsoninlinestatic + get_ptr() const noexceptnlohmann::basic_jsoninline is_array() const noexceptnlohmann::basic_jsoninline is_boolean() const noexceptnlohmann::basic_jsoninline is_discarded() const noexceptnlohmann::basic_jsoninline @@ -167,8 +169,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t typedefnlohmann::basic_json object(list_init_t init=list_init_t())nlohmann::basic_jsoninlinestatic object_t typedefnlohmann::basic_json - operator T() const nlohmann::basic_jsoninline - operator value_t() const noexceptnlohmann::basic_jsoninline + operator value_t() const noexceptnlohmann::basic_jsoninline + operator ValueType() const nlohmann::basic_jsoninline operator!=(const_reference lhs, const_reference rhs) noexceptnlohmann::basic_jsonfriend operator+=(basic_json &&value)nlohmann::basic_jsoninline operator+=(const basic_json &value)nlohmann::basic_jsoninline @@ -217,7 +219,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json.html b/classnlohmann_1_1basic__json.html index b03b9d823..9cb7a7465 100644 --- a/classnlohmann_1_1basic__json.html +++ b/classnlohmann_1_1basic__json.html @@ -319,14 +319,22 @@ Public Member Functions  return the type of the object (implicit) More...
 
value access
-template<typename T > -T get () const - get a value (explicit) More...
-  -template<typename T > - operator T () const - get a value (implicit) More...
-  +template<typename ValueType , typename std::enable_if< not std::is_pointer< ValueType >::value, int >::type = 0> +ValueType get () const + get a value (explicit) More...
+  +template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0> +PointerType get () const noexcept + get a pointer value (explicit) More...
+  +template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0> +PointerType get_ptr () const noexcept + get a pointer value (implicit) More...
+  +template<typename ValueType , typename std::enable_if< not std::is_pointer< ValueType >::value, int >::type = 0> + operator ValueType () const + get a value (implicit) More...
element access
reference at (size_type idx)  access specified array element with bounds checking More...
@@ -572,7 +580,7 @@ ECMA 404 diff --git a/classnlohmann_1_1basic__json_1_1const__iterator-members.html b/classnlohmann_1_1basic__json_1_1const__iterator-members.html index da92eb547..29aaaca17 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator-members.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator-members.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json_1_1const__iterator.html b/classnlohmann_1_1basic__json_1_1const__iterator.html index 65f3c2a2b..eb2086d9b 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator.html @@ -207,7 +207,7 @@ Friends diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a019087161350d393f3e4ac841cdd3dbd.html b/classnlohmann_1_1basic__json_1_1const__iterator_a019087161350d393f3e4ac841cdd3dbd.html index b9799dec1..8284994ee 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a019087161350d393f3e4ac841cdd3dbd.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a019087161350d393f3e4ac841cdd3dbd.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a17e5f5d3598e6901f3c1c1f7dc60589f.html b/classnlohmann_1_1basic__json_1_1const__iterator_a17e5f5d3598e6901f3c1c1f7dc60589f.html index 507399111..b350d445c 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a17e5f5d3598e6901f3c1c1f7dc60589f.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a17e5f5d3598e6901f3c1c1f7dc60589f.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a1cba94e5a67ee52bc66b898a4e08359d.html b/classnlohmann_1_1basic__json_1_1const__iterator_a1cba94e5a67ee52bc66b898a4e08359d.html index f0a0dcce0..952dfc8f0 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a1cba94e5a67ee52bc66b898a4e08359d.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a1cba94e5a67ee52bc66b898a4e08359d.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a301749e9779adafd395369ac36df93df.html b/classnlohmann_1_1basic__json_1_1const__iterator_a301749e9779adafd395369ac36df93df.html index 92efe6580..2de403530 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a301749e9779adafd395369ac36df93df.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a301749e9779adafd395369ac36df93df.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a3555206044cce80680f3ea662760e561.html b/classnlohmann_1_1basic__json_1_1const__iterator_a3555206044cce80680f3ea662760e561.html index 4c138db9d..62fb0f69a 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a3555206044cce80680f3ea662760e561.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a3555206044cce80680f3ea662760e561.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a36086a699b95e06976c11367b7d6ba53.html b/classnlohmann_1_1basic__json_1_1const__iterator_a36086a699b95e06976c11367b7d6ba53.html index 7780fba4a..8ebf2534f 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a36086a699b95e06976c11367b7d6ba53.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a36086a699b95e06976c11367b7d6ba53.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html b/classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html index eb740fdd4..47c83a811 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a4f7ac43b0ab34c387b1ae1a8e9c08467.html b/classnlohmann_1_1basic__json_1_1const__iterator_a4f7ac43b0ab34c387b1ae1a8e9c08467.html index 49040cc7a..242e25004 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a4f7ac43b0ab34c387b1ae1a8e9c08467.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a4f7ac43b0ab34c387b1ae1a8e9c08467.html @@ -140,7 +140,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a62cad59e006eb7fa594c2c5b65a76610.html b/classnlohmann_1_1basic__json_1_1const__iterator_a62cad59e006eb7fa594c2c5b65a76610.html index 4b7db2bbe..6861c0a68 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a62cad59e006eb7fa594c2c5b65a76610.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a62cad59e006eb7fa594c2c5b65a76610.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a67848d4b7bfa576434ad9807147b5870.html b/classnlohmann_1_1basic__json_1_1const__iterator_a67848d4b7bfa576434ad9807147b5870.html index 6c7ef12c7..7a6aba9d1 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a67848d4b7bfa576434ad9807147b5870.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a67848d4b7bfa576434ad9807147b5870.html @@ -140,7 +140,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a6b3e43d2f45fa611825dbdf4e88fffe2.html b/classnlohmann_1_1basic__json_1_1const__iterator_a6b3e43d2f45fa611825dbdf4e88fffe2.html index e9f752221..0f6feebb9 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a6b3e43d2f45fa611825dbdf4e88fffe2.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a6b3e43d2f45fa611825dbdf4e88fffe2.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a86a1771e6658d0b14868df6c197d2353.html b/classnlohmann_1_1basic__json_1_1const__iterator_a86a1771e6658d0b14868df6c197d2353.html index a70c15b5f..88d03c22b 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a86a1771e6658d0b14868df6c197d2353.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a86a1771e6658d0b14868df6c197d2353.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_a8d024cbc99db0d8106899f9fd9973735.html b/classnlohmann_1_1basic__json_1_1const__iterator_a8d024cbc99db0d8106899f9fd9973735.html index d1bf84147..dbaff442f 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_a8d024cbc99db0d8106899f9fd9973735.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_a8d024cbc99db0d8106899f9fd9973735.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_aa30f18484c63166246f8eec30a7984bc.html b/classnlohmann_1_1basic__json_1_1const__iterator_aa30f18484c63166246f8eec30a7984bc.html index 44172c3f1..d75827684 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_aa30f18484c63166246f8eec30a7984bc.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_aa30f18484c63166246f8eec30a7984bc.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_aaf7158f62951acb046b867316be0fb97.html b/classnlohmann_1_1basic__json_1_1const__iterator_aaf7158f62951acb046b867316be0fb97.html index eb44586ba..895eb03b7 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_aaf7158f62951acb046b867316be0fb97.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_aaf7158f62951acb046b867316be0fb97.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ab74b39747a9dad60650a57133fca85b3.html b/classnlohmann_1_1basic__json_1_1const__iterator_ab74b39747a9dad60650a57133fca85b3.html index a75d37d2c..28525b275 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ab74b39747a9dad60650a57133fca85b3.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ab74b39747a9dad60650a57133fca85b3.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ab7dacd8e3ee9b3756bfcdb87dd55a515.html b/classnlohmann_1_1basic__json_1_1const__iterator_ab7dacd8e3ee9b3756bfcdb87dd55a515.html index f7fb3532d..484b412d7 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ab7dacd8e3ee9b3756bfcdb87dd55a515.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ab7dacd8e3ee9b3756bfcdb87dd55a515.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html b/classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html index 4f7aee4e5..f04d3c739 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_abb1921cbf0ad4036c83bc6303e22171f.html b/classnlohmann_1_1basic__json_1_1const__iterator_abb1921cbf0ad4036c83bc6303e22171f.html index 72f4d2463..dff788641 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_abb1921cbf0ad4036c83bc6303e22171f.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_abb1921cbf0ad4036c83bc6303e22171f.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_abbacd95955c602efc9a58ed1ffdb46c4.html b/classnlohmann_1_1basic__json_1_1const__iterator_abbacd95955c602efc9a58ed1ffdb46c4.html index 52d01556c..3c079edb8 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_abbacd95955c602efc9a58ed1ffdb46c4.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_abbacd95955c602efc9a58ed1ffdb46c4.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ac36b9187de43721a4bf1b052578bb80b.html b/classnlohmann_1_1basic__json_1_1const__iterator_ac36b9187de43721a4bf1b052578bb80b.html index 6fc953ae8..e0e314148 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ac36b9187de43721a4bf1b052578bb80b.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ac36b9187de43721a4bf1b052578bb80b.html @@ -140,7 +140,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ac634a659837f5aebc97125e031de23b5.html b/classnlohmann_1_1basic__json_1_1const__iterator_ac634a659837f5aebc97125e031de23b5.html index 04f616852..ae5f31d9f 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ac634a659837f5aebc97125e031de23b5.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ac634a659837f5aebc97125e031de23b5.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_acea5b75d1087e2a92833946d9dc547ff.html b/classnlohmann_1_1basic__json_1_1const__iterator_acea5b75d1087e2a92833946d9dc547ff.html index 2eca90857..a5bb4926b 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_acea5b75d1087e2a92833946d9dc547ff.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_acea5b75d1087e2a92833946d9dc547ff.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ada3100cdb8700566051828f1355fa745.html b/classnlohmann_1_1basic__json_1_1const__iterator_ada3100cdb8700566051828f1355fa745.html index f787e54ad..ef405ec15 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ada3100cdb8700566051828f1355fa745.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ada3100cdb8700566051828f1355fa745.html @@ -148,7 +148,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_adb50d6043ace464d9f694869724d7fb2.html b/classnlohmann_1_1basic__json_1_1const__iterator_adb50d6043ace464d9f694869724d7fb2.html index 6eda7015e..59416c3a4 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_adb50d6043ace464d9f694869724d7fb2.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_adb50d6043ace464d9f694869724d7fb2.html @@ -140,7 +140,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_adda9a4bd7f0edb9cb39dc0dca3d4a286.html b/classnlohmann_1_1basic__json_1_1const__iterator_adda9a4bd7f0edb9cb39dc0dca3d4a286.html index 7c6f43ce8..d18ec5364 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_adda9a4bd7f0edb9cb39dc0dca3d4a286.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_adda9a4bd7f0edb9cb39dc0dca3d4a286.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_adf6f9d3f8f8d8b1ccedabb4f04c098ad.html b/classnlohmann_1_1basic__json_1_1const__iterator_adf6f9d3f8f8d8b1ccedabb4f04c098ad.html index f56234fac..f8ba41146 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_adf6f9d3f8f8d8b1ccedabb4f04c098ad.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_adf6f9d3f8f8d8b1ccedabb4f04c098ad.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_ae480d5c86e5e1129d53d1e19782017a6.html b/classnlohmann_1_1basic__json_1_1const__iterator_ae480d5c86e5e1129d53d1e19782017a6.html index b1992ae89..1b2dcd397 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_ae480d5c86e5e1129d53d1e19782017a6.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_ae480d5c86e5e1129d53d1e19782017a6.html @@ -140,7 +140,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_aebd099d9a70ffe760242ef24046c9002.html b/classnlohmann_1_1basic__json_1_1const__iterator_aebd099d9a70ffe760242ef24046c9002.html index c545565e7..b2d880dbc 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_aebd099d9a70ffe760242ef24046c9002.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_aebd099d9a70ffe760242ef24046c9002.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_af34f68f1ce670e7f25ce267b2b1e64ab.html b/classnlohmann_1_1basic__json_1_1const__iterator_af34f68f1ce670e7f25ce267b2b1e64ab.html index 199bb58f2..5f02c867d 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_af34f68f1ce670e7f25ce267b2b1e64ab.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_af34f68f1ce670e7f25ce267b2b1e64ab.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__iterator_af55564e391b23e41abe78bc4bbe4edcb.html b/classnlohmann_1_1basic__json_1_1const__iterator_af55564e391b23e41abe78bc4bbe4edcb.html index 3f88b63bb..a7c739201 100644 --- a/classnlohmann_1_1basic__json_1_1const__iterator_af55564e391b23e41abe78bc4bbe4edcb.html +++ b/classnlohmann_1_1basic__json_1_1const__iterator_af55564e391b23e41abe78bc4bbe4edcb.html @@ -152,7 +152,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__reverse__iterator-members.html b/classnlohmann_1_1basic__json_1_1const__reverse__iterator-members.html index dfd16ed49..2a0898a2e 100644 --- a/classnlohmann_1_1basic__json_1_1const__reverse__iterator-members.html +++ b/classnlohmann_1_1basic__json_1_1const__reverse__iterator-members.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json_1_1const__reverse__iterator.html b/classnlohmann_1_1basic__json_1_1const__reverse__iterator.html index 3cd67ae82..742efdf72 100644 --- a/classnlohmann_1_1basic__json_1_1const__reverse__iterator.html +++ b/classnlohmann_1_1basic__json_1_1const__reverse__iterator.html @@ -115,7 +115,7 @@ Public Member Functions diff --git a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a31fc105e72c0e8b19eda11495fd3af3f.html b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a31fc105e72c0e8b19eda11495fd3af3f.html index 535b2536f..8eb1f7edc 100644 --- a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a31fc105e72c0e8b19eda11495fd3af3f.html +++ b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a31fc105e72c0e8b19eda11495fd3af3f.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a7eb11a5029b7ffff32fdea5f082493c2.html b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a7eb11a5029b7ffff32fdea5f082493c2.html index e6b38e290..27d90bea1 100644 --- a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a7eb11a5029b7ffff32fdea5f082493c2.html +++ b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a7eb11a5029b7ffff32fdea5f082493c2.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a8ba3f75a7ec557eec19b7513e2924219.html b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a8ba3f75a7ec557eec19b7513e2924219.html index 409bbaf9d..16491b7a4 100644 --- a/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a8ba3f75a7ec557eec19b7513e2924219.html +++ b/classnlohmann_1_1basic__json_1_1const__reverse__iterator_a8ba3f75a7ec557eec19b7513e2924219.html @@ -124,7 +124,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator-members.html b/classnlohmann_1_1basic__json_1_1iterator-members.html index b6eb87461..0cb846d53 100644 --- a/classnlohmann_1_1basic__json_1_1iterator-members.html +++ b/classnlohmann_1_1basic__json_1_1iterator-members.html @@ -128,7 +128,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json_1_1iterator.html b/classnlohmann_1_1basic__json_1_1iterator.html index e62a3b7d0..e05be2b63 100644 --- a/classnlohmann_1_1basic__json_1_1iterator.html +++ b/classnlohmann_1_1basic__json_1_1iterator.html @@ -204,7 +204,7 @@ Friends diff --git a/classnlohmann_1_1basic__json_1_1iterator_a037e5f3de196ff4cea8a95a8a4e35882.html b/classnlohmann_1_1basic__json_1_1iterator_a037e5f3de196ff4cea8a95a8a4e35882.html index 72064d4b4..f239d09e7 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a037e5f3de196ff4cea8a95a8a4e35882.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a037e5f3de196ff4cea8a95a8a4e35882.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a0a43bd93e6e46645ed0b93d3af7bfe22.html b/classnlohmann_1_1basic__json_1_1iterator_a0a43bd93e6e46645ed0b93d3af7bfe22.html index a38ac637b..a188251ff 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a0a43bd93e6e46645ed0b93d3af7bfe22.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a0a43bd93e6e46645ed0b93d3af7bfe22.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a0c0acb68cc2a50a0e8782f860184883f.html b/classnlohmann_1_1basic__json_1_1iterator_a0c0acb68cc2a50a0e8782f860184883f.html index ae8c35ea8..827fb2856 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a0c0acb68cc2a50a0e8782f860184883f.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a0c0acb68cc2a50a0e8782f860184883f.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a1220b360a07b0605f7d2f4b3cfd16736.html b/classnlohmann_1_1basic__json_1_1iterator_a1220b360a07b0605f7d2f4b3cfd16736.html index 87addfa3b..63b7f84d7 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a1220b360a07b0605f7d2f4b3cfd16736.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a1220b360a07b0605f7d2f4b3cfd16736.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a21d32a4547ba4cbadd8b435a6a0d0e1b.html b/classnlohmann_1_1basic__json_1_1iterator_a21d32a4547ba4cbadd8b435a6a0d0e1b.html index a89aef9ce..b44b5c320 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a21d32a4547ba4cbadd8b435a6a0d0e1b.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a21d32a4547ba4cbadd8b435a6a0d0e1b.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a302d810a0685f8d39368eaa65c833acf.html b/classnlohmann_1_1basic__json_1_1iterator_a302d810a0685f8d39368eaa65c833acf.html index 5daa59f5b..651d3398a 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a302d810a0685f8d39368eaa65c833acf.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a302d810a0685f8d39368eaa65c833acf.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html b/classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html index a1236a701..4e6f740d9 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a46bae6328cd653d64b4569b1c8e63d58.html b/classnlohmann_1_1basic__json_1_1iterator_a46bae6328cd653d64b4569b1c8e63d58.html index ebf08c559..e364a3b88 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a46bae6328cd653d64b4569b1c8e63d58.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a46bae6328cd653d64b4569b1c8e63d58.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a4ae612fa9eb59784047b40f0419db65d.html b/classnlohmann_1_1basic__json_1_1iterator_a4ae612fa9eb59784047b40f0419db65d.html index d61c689e0..663b32a79 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a4ae612fa9eb59784047b40f0419db65d.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a4ae612fa9eb59784047b40f0419db65d.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a4f6e03ae3bb674ebf0b727f74957c12f.html b/classnlohmann_1_1basic__json_1_1iterator_a4f6e03ae3bb674ebf0b727f74957c12f.html index 0773aa064..6e1b750aa 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a4f6e03ae3bb674ebf0b727f74957c12f.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a4f6e03ae3bb674ebf0b727f74957c12f.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a545c6a8a714e4ab23a28e73d45ad068c.html b/classnlohmann_1_1basic__json_1_1iterator_a545c6a8a714e4ab23a28e73d45ad068c.html index a76ad5e36..1ff8c7381 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a545c6a8a714e4ab23a28e73d45ad068c.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a545c6a8a714e4ab23a28e73d45ad068c.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a7031e759ee52d1283aada0ff81108a5e.html b/classnlohmann_1_1basic__json_1_1iterator_a7031e759ee52d1283aada0ff81108a5e.html index 5ed08091f..780b345e1 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a7031e759ee52d1283aada0ff81108a5e.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a7031e759ee52d1283aada0ff81108a5e.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a7286981657d115cc8803d14b28874ab3.html b/classnlohmann_1_1basic__json_1_1iterator_a7286981657d115cc8803d14b28874ab3.html index c0cc842aa..6fd72537d 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a7286981657d115cc8803d14b28874ab3.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a7286981657d115cc8803d14b28874ab3.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a75d68bfd97f26133dbeebb4fb49379fd.html b/classnlohmann_1_1basic__json_1_1iterator_a75d68bfd97f26133dbeebb4fb49379fd.html index d2699b230..f939ddbb0 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a75d68bfd97f26133dbeebb4fb49379fd.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a75d68bfd97f26133dbeebb4fb49379fd.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a799627115ae852c4bb9ca2042ce0aa94.html b/classnlohmann_1_1basic__json_1_1iterator_a799627115ae852c4bb9ca2042ce0aa94.html index 470f4ce11..2dd0af0c4 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a799627115ae852c4bb9ca2042ce0aa94.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a799627115ae852c4bb9ca2042ce0aa94.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a83b095887d17e0351f8be616764ac455.html b/classnlohmann_1_1basic__json_1_1iterator_a83b095887d17e0351f8be616764ac455.html index 43a3321a4..711de3a71 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a83b095887d17e0351f8be616764ac455.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a83b095887d17e0351f8be616764ac455.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html b/classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html index 8c9acce4b..77157e1b7 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a94285e2ade0bfef829b81377bbbca6cf.html b/classnlohmann_1_1basic__json_1_1iterator_a94285e2ade0bfef829b81377bbbca6cf.html index bdb3d6aad..3832a51c2 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a94285e2ade0bfef829b81377bbbca6cf.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a94285e2ade0bfef829b81377bbbca6cf.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_a9fcfda575b08d0c73b6274cdbbe7f184.html b/classnlohmann_1_1basic__json_1_1iterator_a9fcfda575b08d0c73b6274cdbbe7f184.html index ecec055ae..de156b37b 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_a9fcfda575b08d0c73b6274cdbbe7f184.html +++ b/classnlohmann_1_1basic__json_1_1iterator_a9fcfda575b08d0c73b6274cdbbe7f184.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_aa2bd10afdcfc70acb8eaabbd2f6496f0.html b/classnlohmann_1_1basic__json_1_1iterator_aa2bd10afdcfc70acb8eaabbd2f6496f0.html index 46d2c525c..b191ddf2a 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_aa2bd10afdcfc70acb8eaabbd2f6496f0.html +++ b/classnlohmann_1_1basic__json_1_1iterator_aa2bd10afdcfc70acb8eaabbd2f6496f0.html @@ -139,7 +139,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ab220a0cc3fe410fbae4524208bd5834f.html b/classnlohmann_1_1basic__json_1_1iterator_ab220a0cc3fe410fbae4524208bd5834f.html index 296605e37..f7d488b21 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ab220a0cc3fe410fbae4524208bd5834f.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ab220a0cc3fe410fbae4524208bd5834f.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ab5cf753cb2f8ce53b9f3e54c39e50ee3.html b/classnlohmann_1_1basic__json_1_1iterator_ab5cf753cb2f8ce53b9f3e54c39e50ee3.html index 7d4c96c3f..65ff1cd82 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ab5cf753cb2f8ce53b9f3e54c39e50ee3.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ab5cf753cb2f8ce53b9f3e54c39e50ee3.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ac01e258f97612d7f7766f92324e5612a.html b/classnlohmann_1_1basic__json_1_1iterator_ac01e258f97612d7f7766f92324e5612a.html index ab9140f17..f7c0f9129 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ac01e258f97612d7f7766f92324e5612a.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ac01e258f97612d7f7766f92324e5612a.html @@ -150,7 +150,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ac17f1d9d40b6b928a4964ce97a443c6e.html b/classnlohmann_1_1basic__json_1_1iterator_ac17f1d9d40b6b928a4964ce97a443c6e.html index 3a74c1b32..c74fd0b9b 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ac17f1d9d40b6b928a4964ce97a443c6e.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ac17f1d9d40b6b928a4964ce97a443c6e.html @@ -139,7 +139,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_acf3df244524244ed5c2923c11427e3da.html b/classnlohmann_1_1basic__json_1_1iterator_acf3df244524244ed5c2923c11427e3da.html index 35b0943f1..e00414d09 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_acf3df244524244ed5c2923c11427e3da.html +++ b/classnlohmann_1_1basic__json_1_1iterator_acf3df244524244ed5c2923c11427e3da.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ad35cf47e2fb5918dc06260eda3dcd35d.html b/classnlohmann_1_1basic__json_1_1iterator_ad35cf47e2fb5918dc06260eda3dcd35d.html index 7cece77ab..85c878ae7 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ad35cf47e2fb5918dc06260eda3dcd35d.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ad35cf47e2fb5918dc06260eda3dcd35d.html @@ -151,7 +151,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ad58453e21f157edfeaaff13e9560724b.html b/classnlohmann_1_1basic__json_1_1iterator_ad58453e21f157edfeaaff13e9560724b.html index b344c7445..d4c9f2fc1 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ad58453e21f157edfeaaff13e9560724b.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ad58453e21f157edfeaaff13e9560724b.html @@ -139,7 +139,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ada3100cdb8700566051828f1355fa745.html b/classnlohmann_1_1basic__json_1_1iterator_ada3100cdb8700566051828f1355fa745.html index c7808417e..1743d3269 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ada3100cdb8700566051828f1355fa745.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ada3100cdb8700566051828f1355fa745.html @@ -147,7 +147,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_ae58eb251e2ca9b5c9d522f25fa67eb36.html b/classnlohmann_1_1basic__json_1_1iterator_ae58eb251e2ca9b5c9d522f25fa67eb36.html index 664a4ea1f..ece91fb6e 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_ae58eb251e2ca9b5c9d522f25fa67eb36.html +++ b/classnlohmann_1_1basic__json_1_1iterator_ae58eb251e2ca9b5c9d522f25fa67eb36.html @@ -139,7 +139,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1iterator_afe65b5a0572c7bfdd7ccc942bb8e9fe2.html b/classnlohmann_1_1basic__json_1_1iterator_afe65b5a0572c7bfdd7ccc942bb8e9fe2.html index 5bb7024f0..bb6b6ff90 100644 --- a/classnlohmann_1_1basic__json_1_1iterator_afe65b5a0572c7bfdd7ccc942bb8e9fe2.html +++ b/classnlohmann_1_1basic__json_1_1iterator_afe65b5a0572c7bfdd7ccc942bb8e9fe2.html @@ -139,7 +139,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1reverse__iterator-members.html b/classnlohmann_1_1basic__json_1_1reverse__iterator-members.html index 61278b0a3..1903cac51 100644 --- a/classnlohmann_1_1basic__json_1_1reverse__iterator-members.html +++ b/classnlohmann_1_1basic__json_1_1reverse__iterator-members.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/classnlohmann_1_1basic__json_1_1reverse__iterator.html b/classnlohmann_1_1basic__json_1_1reverse__iterator.html index f32392203..a11a4f32b 100644 --- a/classnlohmann_1_1basic__json_1_1reverse__iterator.html +++ b/classnlohmann_1_1basic__json_1_1reverse__iterator.html @@ -115,7 +115,7 @@ Public Member Functions diff --git a/classnlohmann_1_1basic__json_1_1reverse__iterator_a514d7a82f1c8f1862acfefe8d16c6ca6.html b/classnlohmann_1_1basic__json_1_1reverse__iterator_a514d7a82f1c8f1862acfefe8d16c6ca6.html index 97b27de21..1f3a27070 100644 --- a/classnlohmann_1_1basic__json_1_1reverse__iterator_a514d7a82f1c8f1862acfefe8d16c6ca6.html +++ b/classnlohmann_1_1basic__json_1_1reverse__iterator_a514d7a82f1c8f1862acfefe8d16c6ca6.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1reverse__iterator_ae711bdc24d54870a560550fc21c11f46.html b/classnlohmann_1_1basic__json_1_1reverse__iterator_ae711bdc24d54870a560550fc21c11f46.html index 68f2c2c2b..bd7805997 100644 --- a/classnlohmann_1_1basic__json_1_1reverse__iterator_ae711bdc24d54870a560550fc21c11f46.html +++ b/classnlohmann_1_1basic__json_1_1reverse__iterator_ae711bdc24d54870a560550fc21c11f46.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_1_1reverse__iterator_af3029b8b16518b9da0b4cd3be98ef2c1.html b/classnlohmann_1_1basic__json_1_1reverse__iterator_af3029b8b16518b9da0b4cd3be98ef2c1.html index d788ab215..13c7ccd9a 100644 --- a/classnlohmann_1_1basic__json_1_1reverse__iterator_af3029b8b16518b9da0b4cd3be98ef2c1.html +++ b/classnlohmann_1_1basic__json_1_1reverse__iterator_af3029b8b16518b9da0b4cd3be98ef2c1.html @@ -124,7 +124,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a01a2643289b69cd71d9b3f3fc209b748.html b/classnlohmann_1_1basic__json_a01a2643289b69cd71d9b3f3fc209b748.html index 1cd745927..7c3ba10b1 100644 --- a/classnlohmann_1_1basic__json_a01a2643289b69cd71d9b3f3fc209b748.html +++ b/classnlohmann_1_1basic__json_a01a2643289b69cd71d9b3f3fc209b748.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a034bccea9f5400650443e9f12e67b079.html b/classnlohmann_1_1basic__json_a034bccea9f5400650443e9f12e67b079.html index b01845d97..e650d317c 100644 --- a/classnlohmann_1_1basic__json_a034bccea9f5400650443e9f12e67b079.html +++ b/classnlohmann_1_1basic__json_a034bccea9f5400650443e9f12e67b079.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -288,7 +290,7 @@ null diff --git a/classnlohmann_1_1basic__json_a058be74840ddfec9dad9755ac8dc8b99.html b/classnlohmann_1_1basic__json_a058be74840ddfec9dad9755ac8dc8b99.html index c402ee24e..c95dd3803 100644 --- a/classnlohmann_1_1basic__json_a058be74840ddfec9dad9755ac8dc8b99.html +++ b/classnlohmann_1_1basic__json_a058be74840ddfec9dad9755ac8dc8b99.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -278,7 +280,7 @@ false diff --git a/classnlohmann_1_1basic__json_a0998ed4a76d1e5048fd043475eb7bfde.html b/classnlohmann_1_1basic__json_a0998ed4a76d1e5048fd043475eb7bfde.html index cdd2e55bf..8d33820bf 100644 --- a/classnlohmann_1_1basic__json_a0998ed4a76d1e5048fd043475eb7bfde.html +++ b/classnlohmann_1_1basic__json_a0998ed4a76d1e5048fd043475eb7bfde.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -280,7 +282,7 @@ template<template< typename U, typename V, typename...Args > class Obje
24 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
size_type max_size() const noexcept
returns the maximum possible number of elements
Definition: json.hpp:2725
+
size_type max_size() const noexcept
returns the maximum possible number of elements
Definition: json.hpp:2893
Output:
0
 1
 1
@@ -298,7 +300,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a0a7560122349628cf4942a316aa6d21f.html b/classnlohmann_1_1basic__json_a0a7560122349628cf4942a316aa6d21f.html
index e0268d240..1a853fa7a 100644
--- a/classnlohmann_1_1basic__json_a0a7560122349628cf4942a316aa6d21f.html
+++ b/classnlohmann_1_1basic__json_a0a7560122349628cf4942a316aa6d21f.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a0a9c6a1fccc4db365860463e8203eb38.html b/classnlohmann_1_1basic__json_a0a9c6a1fccc4db365860463e8203eb38.html
index 383fa4c7c..bb4203445 100644
--- a/classnlohmann_1_1basic__json_a0a9c6a1fccc4db365860463e8203eb38.html
+++ b/classnlohmann_1_1basic__json_a0a9c6a1fccc4db365860463e8203eb38.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -275,7 +277,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a0bb6ea56c89560cce8003485bffe49d4.html b/classnlohmann_1_1basic__json_a0bb6ea56c89560cce8003485bffe49d4.html
index a4f812cf5..95a63f991 100644
--- a/classnlohmann_1_1basic__json_a0bb6ea56c89560cce8003485bffe49d4.html
+++ b/classnlohmann_1_1basic__json_a0bb6ea56c89560cce8003485bffe49d4.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -292,7 +294,7 @@ template<typename CompatibleNumberIntegerType , typename std::enable_if< s
 
 
 
diff --git a/classnlohmann_1_1basic__json_a0e372f4c5a90c6be7242a2d7a3709b48.html b/classnlohmann_1_1basic__json_a0e372f4c5a90c6be7242a2d7a3709b48.html
index 69d06f035..59c0decc1 100644
--- a/classnlohmann_1_1basic__json_a0e372f4c5a90c6be7242a2d7a3709b48.html
+++ b/classnlohmann_1_1basic__json_a0e372f4c5a90c6be7242a2d7a3709b48.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a122640e7e2db1814fc7bbb3c122ec76e.html b/classnlohmann_1_1basic__json_a122640e7e2db1814fc7bbb3c122ec76e.html
index e5571931a..b2a593114 100644
--- a/classnlohmann_1_1basic__json_a122640e7e2db1814fc7bbb3c122ec76e.html
+++ b/classnlohmann_1_1basic__json_a122640e7e2db1814fc7bbb3c122ec76e.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -265,7 +267,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a13e5642dbfa1602c937d295a085413cc.html b/classnlohmann_1_1basic__json_a13e5642dbfa1602c937d295a085413cc.html
index cf3224e58..9bd4b09c4 100644
--- a/classnlohmann_1_1basic__json_a13e5642dbfa1602c937d295a085413cc.html
+++ b/classnlohmann_1_1basic__json_a13e5642dbfa1602c937d295a085413cc.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a15e468968cd4d0e4fd566044d66ada24.html b/classnlohmann_1_1basic__json_a15e468968cd4d0e4fd566044d66ada24.html
index 3999d1444..a995d77be 100644
--- a/classnlohmann_1_1basic__json_a15e468968cd4d0e4fd566044d66ada24.html
+++ b/classnlohmann_1_1basic__json_a15e468968cd4d0e4fd566044d66ada24.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -277,7 +279,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a16a275d0201e9aedc87c933c764b8869.html b/classnlohmann_1_1basic__json_a16a275d0201e9aedc87c933c764b8869.html
index 363e81bd2..6b630a2fd 100644
--- a/classnlohmann_1_1basic__json_a16a275d0201e9aedc87c933c764b8869.html
+++ b/classnlohmann_1_1basic__json_a16a275d0201e9aedc87c933c764b8869.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -275,7 +277,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
26  }
27 }
a class to store JSON values
Definition: json.hpp:121
-
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:1839
+
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:2007
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
"il brutto"
 out of range
@@ -289,7 +291,7 @@ out of range
 
 
 
diff --git a/classnlohmann_1_1basic__json_a190d719446e7016879c4b961c9cf9072.html b/classnlohmann_1_1basic__json_a190d719446e7016879c4b961c9cf9072.html
index fca93a329..8d8548c71 100644
--- a/classnlohmann_1_1basic__json_a190d719446e7016879c4b961c9cf9072.html
+++ b/classnlohmann_1_1basic__json_a190d719446e7016879c4b961c9cf9072.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -277,7 +279,7 @@ template<typename T , typename std::enable_if< not(std::is_same< T, int
 
 
 
diff --git a/classnlohmann_1_1basic__json_a1f6b988271c56e3b9d5d33166154fdb6.html b/classnlohmann_1_1basic__json_a1f6b988271c56e3b9d5d33166154fdb6.html
index 711c5979a..db6542709 100644
--- a/classnlohmann_1_1basic__json_a1f6b988271c56e3b9d5d33166154fdb6.html
+++ b/classnlohmann_1_1basic__json_a1f6b988271c56e3b9d5d33166154fdb6.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -308,7 +310,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a231b02148577b69a154b2ce2c87a5522.html b/classnlohmann_1_1basic__json_a231b02148577b69a154b2ce2c87a5522.html
index f483f8d36..9d040b748 100644
--- a/classnlohmann_1_1basic__json_a231b02148577b69a154b2ce2c87a5522.html
+++ b/classnlohmann_1_1basic__json_a231b02148577b69a154b2ce2c87a5522.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -263,7 +265,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a23a1bd619b2ec24de10b726750f09051.html b/classnlohmann_1_1basic__json_a23a1bd619b2ec24de10b726750f09051.html
new file mode 100644
index 000000000..988dffc10
--- /dev/null
+++ b/classnlohmann_1_1basic__json_a23a1bd619b2ec24de10b726750f09051.html
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::get_ptr
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename T , typename std::enable_if< std::is_pointer< T >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
T nlohmann::basic_json::get_ptr ()
+
+inline
+
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a2448b2777e8a3e48614e1b3c41b96f7c.html b/classnlohmann_1_1basic__json_a2448b2777e8a3e48614e1b3c41b96f7c.html index e50568147..e0aec27ed 100644 --- a/classnlohmann_1_1basic__json_a2448b2777e8a3e48614e1b3c41b96f7c.html +++ b/classnlohmann_1_1basic__json_a2448b2777e8a3e48614e1b3c41b96f7c.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -273,7 +275,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a266c4dd24d11a86e4831523af5d9df4d.html b/classnlohmann_1_1basic__json_a266c4dd24d11a86e4831523af5d9df4d.html index b1d537573..a1a40c51b 100644 --- a/classnlohmann_1_1basic__json_a266c4dd24d11a86e4831523af5d9df4d.html +++ b/classnlohmann_1_1basic__json_a266c4dd24d11a86e4831523af5d9df4d.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -242,7 +244,7 @@ template<typename T , std::size_t n> diff --git a/classnlohmann_1_1basic__json_a2759c64550285b6316fe76d76460d32e.html b/classnlohmann_1_1basic__json_a2759c64550285b6316fe76d76460d32e.html index a97d75fd5..a3712a402 100644 --- a/classnlohmann_1_1basic__json_a2759c64550285b6316fe76d76460d32e.html +++ b/classnlohmann_1_1basic__json_a2759c64550285b6316fe76d76460d32e.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -260,8 +262,8 @@ Illustration from cppreference.com
17  std::cout << *it << '\n';
18 }
a class to store JSON values
Definition: json.hpp:121
-
const_reverse_iterator crend() const noexcept
returns a const reverse iterator to one before the first
Definition: json.hpp:2566
-
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4717
+
const_reverse_iterator crend() const noexcept
returns a const reverse iterator to one before the first
Definition: json.hpp:2734
+
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4885
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/crend.cpp -o crend 
. @@ -274,7 +276,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_a2bb1b109282149119a070be4ac76f820.html b/classnlohmann_1_1basic__json_a2bb1b109282149119a070be4ac76f820.html index aa7aee8e7..007cc4c7d 100644 --- a/classnlohmann_1_1basic__json_a2bb1b109282149119a070be4ac76f820.html +++ b/classnlohmann_1_1basic__json_a2bb1b109282149119a070be4ac76f820.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -278,7 +280,7 @@ false diff --git a/classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html b/classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html new file mode 100644 index 000000000..ba9b0f243 --- /dev/null +++ b/classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html @@ -0,0 +1,289 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get_ptr + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get_ptr () const
+
+inlinenoexcept
+
+

Implict pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee of the result yields an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+
Example
The example below shows how pointers to internal values of a JSON value can be requested. Note that no type conversions are made and a nullptr is returned if the value and the requested pointer type does not match.
1 #include <json.hpp>
+
2 
+
3 using namespace nlohmann;
+
4 
+
5 int main()
+
6 {
+
7  // create a JSON boolean
+
8  json value = 17;
+
9 
+
10  // explicitly getting pointers
+
11  auto p1 = value.get_ptr<const json::number_integer_t*>();
+
12  auto p2 = value.get_ptr<json::number_integer_t*>();
+
13  auto p3 = value.get_ptr<json::number_integer_t* const>();
+
14  auto p4 = value.get_ptr<const json::number_integer_t* const>();
+
15  auto p5 = value.get_ptr<json::number_float_t*>();
+
16 
+
17  // print the pointees
+
18  std::cout << *p1 << ' ' << *p2 << ' ' << *p3 << ' ' << *p4 << '\n';
+
19  std::cout << std::boolalpha << (p5 == nullptr) << '\n';
+
20 }
+
PointerType get_ptr() const noexcept
get a pointer value (implicit)
Definition: json.hpp:1933
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
NumberIntegerType number_integer_t
a type for a number (integer)
Definition: json.hpp:195
+
NumberFloatType number_float_t
a type for a number (floating-point)
Definition: json.hpp:197
+
Output:
17 17 17 17
+true
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get_ptr.cpp -o get_ptr 
.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html b/classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html index f65ecc699..01fd31375 100644 --- a/classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html +++ b/classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -239,7 +241,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a33f1632cfdbf460b4913f4e8a43dd9e4.html b/classnlohmann_1_1basic__json_a33f1632cfdbf460b4913f4e8a43dd9e4.html index cfed55850..39bb25e0a 100644 --- a/classnlohmann_1_1basic__json_a33f1632cfdbf460b4913f4e8a43dd9e4.html +++ b/classnlohmann_1_1basic__json_a33f1632cfdbf460b4913f4e8a43dd9e4.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -270,7 +272,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a34d6a60dd99e9f33b8273a1c8db5669b.html b/classnlohmann_1_1basic__json_a34d6a60dd99e9f33b8273a1c8db5669b.html index 3a63b4092..ee749b527 100644 --- a/classnlohmann_1_1basic__json_a34d6a60dd99e9f33b8273a1c8db5669b.html +++ b/classnlohmann_1_1basic__json_a34d6a60dd99e9f33b8273a1c8db5669b.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -298,7 +300,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a3e49eea90db1cba32ee86a7644a7f05b.html b/classnlohmann_1_1basic__json_a3e49eea90db1cba32ee86a7644a7f05b.html index 22f7f190e..055effd04 100644 --- a/classnlohmann_1_1basic__json_a3e49eea90db1cba32ee86a7644a7f05b.html +++ b/classnlohmann_1_1basic__json_a3e49eea90db1cba32ee86a7644a7f05b.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -259,8 +261,8 @@ Illustration from cppreference.com
15 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
a const random access iterator for the basic_json class
Definition: json.hpp:4200
-
const_iterator cbegin() const noexcept
returns a const iterator to the first element
Definition: json.hpp:2395
+
a const random access iterator for the basic_json class
Definition: json.hpp:4368
+
const_iterator cbegin() const noexcept
returns a const iterator to the first element
Definition: json.hpp:2563
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/cbegin.cpp -o cbegin 
. @@ -272,7 +274,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_a429c2606865483ff357cccc1b1c46569.html b/classnlohmann_1_1basic__json_a429c2606865483ff357cccc1b1c46569.html index a6dafe14a..83ac067b8 100644 --- a/classnlohmann_1_1basic__json_a429c2606865483ff357cccc1b1c46569.html +++ b/classnlohmann_1_1basic__json_a429c2606865483ff357cccc1b1c46569.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a444d8376d63d7a5edb85f33bc5976c14.html b/classnlohmann_1_1basic__json_a444d8376d63d7a5edb85f33bc5976c14.html index 1b63bbca6..7f848c797 100644 --- a/classnlohmann_1_1basic__json_a444d8376d63d7a5edb85f33bc5976c14.html +++ b/classnlohmann_1_1basic__json_a444d8376d63d7a5edb85f33bc5976c14.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -300,7 +302,7 @@ template<template< typename U, typename V, typename...Args > class Obje
18  std::cout << j_nested_object << '\n';
19  std::cout << j_nested_array << '\n';
20 }
-
basic_json<> json
default JSON class
Definition: json.hpp:6189
+
basic_json<> json
default JSON class
Definition: json.hpp:6357
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
{}
@@ -321,7 +323,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a46f149c14e807916a90037557ccfcffa.html b/classnlohmann_1_1basic__json_a46f149c14e807916a90037557ccfcffa.html
index 196012123..b8c9b8926 100644
--- a/classnlohmann_1_1basic__json_a46f149c14e807916a90037557ccfcffa.html
+++ b/classnlohmann_1_1basic__json_a46f149c14e807916a90037557ccfcffa.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -246,7 +248,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a4be3b72fd7f949a0695d08300a258a06.html b/classnlohmann_1_1basic__json_a4be3b72fd7f949a0695d08300a258a06.html
index 2fdb74ef7..3752c414b 100644
--- a/classnlohmann_1_1basic__json_a4be3b72fd7f949a0695d08300a258a06.html
+++ b/classnlohmann_1_1basic__json_a4be3b72fd7f949a0695d08300a258a06.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -242,7 +244,7 @@ template<class T , typename std::enable_if< std::is_same< T, typename _
 
 
 
diff --git a/classnlohmann_1_1basic__json_a4bf695ddf4a00ea8feea2c725ec847f1.html b/classnlohmann_1_1basic__json_a4bf695ddf4a00ea8feea2c725ec847f1.html
index 1d5f12e2e..69ec70f57 100644
--- a/classnlohmann_1_1basic__json_a4bf695ddf4a00ea8feea2c725ec847f1.html
+++ b/classnlohmann_1_1basic__json_a4bf695ddf4a00ea8feea2c725ec847f1.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a53590b99e380c464a83a0a5edf6da9ab.html b/classnlohmann_1_1basic__json_a53590b99e380c464a83a0a5edf6da9ab.html
index 3e7841758..d03bc19c6 100644
--- a/classnlohmann_1_1basic__json_a53590b99e380c464a83a0a5edf6da9ab.html
+++ b/classnlohmann_1_1basic__json_a53590b99e380c464a83a0a5edf6da9ab.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -283,7 +285,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a53a07f52c7a3bb49282f1a8bc213ed84.html b/classnlohmann_1_1basic__json_a53a07f52c7a3bb49282f1a8bc213ed84.html
new file mode 100644
index 000000000..f76ed43be
--- /dev/null
+++ b/classnlohmann_1_1basic__json_a53a07f52c7a3bb49282f1a8bc213ed84.html
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::get
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename T , typename std::enable_if< std::is_pointer< T >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
T nlohmann::basic_json::get ()
+
+inline
+
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a572cdf681c75b42c2bc38a1fbe993eca.html b/classnlohmann_1_1basic__json_a572cdf681c75b42c2bc38a1fbe993eca.html index f1d1c2121..a0ffccd47 100644 --- a/classnlohmann_1_1basic__json_a572cdf681c75b42c2bc38a1fbe993eca.html +++ b/classnlohmann_1_1basic__json_a572cdf681c75b42c2bc38a1fbe993eca.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -284,7 +286,7 @@ template<template< typename U, typename V, typename...Args > class Obje
28  std::cout << j_string.empty() << '\n';
29 }
a class to store JSON values
Definition: json.hpp:121
-
bool empty() const noexcept
checks whether the container is empty
Definition: json.hpp:2610
+
bool empty() const noexcept
checks whether the container is empty
Definition: json.hpp:2778
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
array (ordered collection of values)
@@ -307,7 +309,7 @@ false diff --git a/classnlohmann_1_1basic__json_a57703688bee6b9736ab3a430d8d246f2.html b/classnlohmann_1_1basic__json_a57703688bee6b9736ab3a430d8d246f2.html index 023e302b4..44b510c90 100644 --- a/classnlohmann_1_1basic__json_a57703688bee6b9736ab3a430d8d246f2.html +++ b/classnlohmann_1_1basic__json_a57703688bee6b9736ab3a430d8d246f2.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -286,7 +288,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a57a96ab3ff1ce7b48a754129fb12c982.html b/classnlohmann_1_1basic__json_a57a96ab3ff1ce7b48a754129fb12c982.html index 5dde178d3..ddd9ecb8c 100644 --- a/classnlohmann_1_1basic__json_a57a96ab3ff1ce7b48a754129fb12c982.html +++ b/classnlohmann_1_1basic__json_a57a96ab3ff1ce7b48a754129fb12c982.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a5a2d4dbcdbc8ea065b87daf52cd786b9.html b/classnlohmann_1_1basic__json_a5a2d4dbcdbc8ea065b87daf52cd786b9.html index 81c191ab6..b4231467e 100644 --- a/classnlohmann_1_1basic__json_a5a2d4dbcdbc8ea065b87daf52cd786b9.html +++ b/classnlohmann_1_1basic__json_a5a2d4dbcdbc8ea065b87daf52cd786b9.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -263,7 +265,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html b/classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html new file mode 100644 index 000000000..b87936629 --- /dev/null +++ b/classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html @@ -0,0 +1,290 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get () const
+
+inlinenoexcept
+
+

Explicit pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee of the result yields an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+
Example
The example below shows how pointers to internal values of a JSON value can be requested. Note that no type conversions are made and a nullptr is returned if the value and the requested pointer type does not match.
1 #include <json.hpp>
+
2 
+
3 using namespace nlohmann;
+
4 
+
5 int main()
+
6 {
+
7  // create a JSON boolean
+
8  json value = 17;
+
9 
+
10  // explicitly getting pointers
+
11  auto p1 = value.get<const json::number_integer_t*>();
+
12  auto p2 = value.get<json::number_integer_t*>();
+
13  auto p3 = value.get<json::number_integer_t* const>();
+
14  auto p4 = value.get<const json::number_integer_t* const>();
+
15  auto p5 = value.get<json::number_float_t*>();
+
16 
+
17  // print the pointees
+
18  std::cout << *p1 << ' ' << *p2 << ' ' << *p3 << ' ' << *p4 << '\n';
+
19  std::cout << std::boolalpha << (p5 == nullptr) << '\n';
+
20 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
ValueType get() const
get a value (explicit)
Definition: json.hpp:1866
+
NumberIntegerType number_integer_t
a type for a number (integer)
Definition: json.hpp:195
+
NumberFloatType number_float_t
a type for a number (floating-point)
Definition: json.hpp:197
+
Output:
17 17 17 17
+true
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get__PointerType.cpp -o get__PointerType 
.
+
See also
get_ptr() for explicit pointer-member access
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a5c8bb5200f5eac10d31e26be46e5b1ac.html b/classnlohmann_1_1basic__json_a5c8bb5200f5eac10d31e26be46e5b1ac.html index 8036e4061..dfcc22432 100644 --- a/classnlohmann_1_1basic__json_a5c8bb5200f5eac10d31e26be46e5b1ac.html +++ b/classnlohmann_1_1basic__json_a5c8bb5200f5eac10d31e26be46e5b1ac.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -261,7 +263,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a5e34c5435e557d0bf666bd7311211405.html b/classnlohmann_1_1basic__json_a5e34c5435e557d0bf666bd7311211405.html index 9058410bb..0ef9807e0 100644 --- a/classnlohmann_1_1basic__json_a5e34c5435e557d0bf666bd7311211405.html +++ b/classnlohmann_1_1basic__json_a5e34c5435e557d0bf666bd7311211405.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -298,7 +300,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html b/classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html new file mode 100644 index 000000000..f15528ca9 --- /dev/null +++ b/classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html @@ -0,0 +1,333 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename ValueType , typename std::enable_if< not std::is_pointer< ValueType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
ValueType nlohmann::basic_json::get () const
+
+inline
+
+

Explicit type conversion between the JSON value and a compatible value.

+
Template Parameters
+ + +
ValueTypenon-pointer type compatible to the JSON value, for instance int for JSON integer numbers, bool for JSON booleans, or std::vector types for JSON arrays
+
+
+
Returns
copy of the JSON value, converted to type ValueType
+
Exceptions
+ + +
std::domain_errorin case passed type ValueType is incompatible to JSON
+
+
+
Complexity
Linear in the size of the JSON value.
+
Example
The example below shows serveral conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers, (2) A JSON array can be converted to a standard std::vector<short>, (3) A JSON object can be converted to C++ assiciative containers such as std::unordered_map<std::string, json>.
1 #include <json.hpp>
+
2 #include <unordered_map>
+
3 
+
4 using namespace nlohmann;
+
5 
+
6 int main()
+
7 {
+
8  // create a JSON value with different types
+
9  json json_types =
+
10  {
+
11  {"boolean", true},
+
12  {
+
13  "number", {
+
14  {"integer", 42},
+
15  {"floating-point", 17.23}
+
16  }
+
17  },
+
18  {"string", "Hello, world!"},
+
19  {"array", {1, 2, 3, 4, 5}},
+
20  {"null", nullptr}
+
21  };
+
22 
+
23  // use explicit conversions
+
24  auto v1 = json_types["boolean"].get<bool>();
+
25  auto v2 = json_types["number"]["integer"].get<int>();
+
26  auto v3 = json_types["number"]["integer"].get<short>();
+
27  auto v4 = json_types["number"]["floating-point"].get<float>();
+
28  auto v5 = json_types["number"]["floating-point"].get<int>();
+
29  auto v6 = json_types["string"].get<std::string>();
+
30  auto v7 = json_types["array"].get<std::vector<short>>();
+
31  auto v8 = json_types.get<std::unordered_map<std::string, json>>();
+
32 
+
33  // print the conversion results
+
34  std::cout << v1 << '\n';
+
35  std::cout << v2 << ' ' << v3 << '\n';
+
36  std::cout << v4 << ' ' << v5 << '\n';
+
37  std::cout << v6 << '\n';
+
38 
+
39  for (auto i : v7)
+
40  {
+
41  std::cout << i << ' ';
+
42  }
+
43  std::cout << "\n\n";
+
44 
+
45  for (auto i : v8)
+
46  {
+
47  std::cout << i.first << ": " << i.second << '\n';
+
48  }
+
49 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
ValueType get() const
get a value (explicit)
Definition: json.hpp:1866
+
Output:
1
+42 42
+17.23 17
+Hello, world!
+1 2 3 4 5 
+
+string: "Hello, world!"
+number: {"floating-point":17.23,"integer":42}
+null: null
+boolean: true
+array: [1,2,3,4,5]
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get__ValueType_const.cpp -o get__ValueType_const 
.
+
See also
operator ValueType() const for implicit conversion
+
+get() for pointer-member access
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a5fd8b54389698edf0c08e2dd001f610b.html b/classnlohmann_1_1basic__json_a5fd8b54389698edf0c08e2dd001f610b.html index 747c88ad6..5bfdb7a03 100644 --- a/classnlohmann_1_1basic__json_a5fd8b54389698edf0c08e2dd001f610b.html +++ b/classnlohmann_1_1basic__json_a5fd8b54389698edf0c08e2dd001f610b.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a60ca396028b8d9714c6e10efbf475af6.html b/classnlohmann_1_1basic__json_a60ca396028b8d9714c6e10efbf475af6.html index 51058503f..fe02d2cbc 100644 --- a/classnlohmann_1_1basic__json_a60ca396028b8d9714c6e10efbf475af6.html +++ b/classnlohmann_1_1basic__json_a60ca396028b8d9714c6e10efbf475af6.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -305,7 +307,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a62136b62f0ec60c0f2b5a3ce9aaa19b4.html b/classnlohmann_1_1basic__json_a62136b62f0ec60c0f2b5a3ce9aaa19b4.html index 23765a25f..c8b7208e8 100644 --- a/classnlohmann_1_1basic__json_a62136b62f0ec60c0f2b5a3ce9aaa19b4.html +++ b/classnlohmann_1_1basic__json_a62136b62f0ec60c0f2b5a3ce9aaa19b4.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -278,7 +280,7 @@ false diff --git a/classnlohmann_1_1basic__json_a63691315292df8e1522b00d37ebb1ffc.html b/classnlohmann_1_1basic__json_a63691315292df8e1522b00d37ebb1ffc.html index 9d9588ddb..0f273cb69 100644 --- a/classnlohmann_1_1basic__json_a63691315292df8e1522b00d37ebb1ffc.html +++ b/classnlohmann_1_1basic__json_a63691315292df8e1522b00d37ebb1ffc.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a652414dd930cb3af3b6f454cc535a23e.html b/classnlohmann_1_1basic__json_a652414dd930cb3af3b6f454cc535a23e.html index abc4d5bb3..fc337784a 100644 --- a/classnlohmann_1_1basic__json_a652414dd930cb3af3b6f454cc535a23e.html +++ b/classnlohmann_1_1basic__json_a652414dd930cb3af3b6f454cc535a23e.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -281,7 +283,7 @@ template<template< typename U, typename V, typename...Args > class Obje
32  }
33 }
a class to store JSON values
Definition: json.hpp:121
-
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:1839
+
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:2007
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
"il brutto"
 {"the bad":"il cattivo","the good":"il buono","the ugly":"il brutto"}
@@ -296,7 +298,7 @@ out of range
 
 
 
diff --git a/classnlohmann_1_1basic__json_a656939a3dc9a6047e4afacd9e11b83a6.html b/classnlohmann_1_1basic__json_a656939a3dc9a6047e4afacd9e11b83a6.html
new file mode 100644
index 000000000..b5adb9ff5
--- /dev/null
+++ b/classnlohmann_1_1basic__json_a656939a3dc9a6047e4afacd9e11b83a6.html
@@ -0,0 +1,291 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::get_ptr
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get_ptr ()
+
+inlinenoexcept
+
+

Implict pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee of the result yields an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+
Example
The example below shows how pointers to internal values of a JSON value can be requested. Note that no type conversions are made and a nullptr is returned if the value and the requested pointer type does not match.
1 #include <json.hpp>
+
2 
+
3 using namespace nlohmann;
+
4 
+
5 int main()
+
6 {
+
7  // create a JSON boolean
+
8  json value = 17;
+
9 
+
10  // explicitly getting pointers
+
11  auto p1 = value.get_ptr<const json::number_integer_t*>();
+
12  auto p2 = value.get_ptr<json::number_integer_t*>();
+
13  auto p3 = value.get_ptr<json::number_integer_t* const>();
+
14  auto p4 = value.get_ptr<const json::number_integer_t* const>();
+
15  auto p5 = value.get_ptr<json::number_float_t*>();
+
16 
+
17  // print the pointees
+
18  std::cout << *p1 << ' ' << *p2 << ' ' << *p3 << ' ' << *p4 << '\n';
+
19  std::cout << std::boolalpha << (p5 == nullptr) << '\n';
+
20 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
PointerType get_ptr() noexcept
get a pointer value (implicit)
Definition: json.hpp:1943
+
NumberIntegerType number_integer_t
a type for a number (integer)
Definition: json.hpp:195
+
NumberFloatType number_float_t
a type for a number (floating-point)
Definition: json.hpp:197
+
Output:
17 17 17 17
+true
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get_ptr.cpp -o get_ptr 
.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a677297e84beb0f13cbd55525cf523e01.html b/classnlohmann_1_1basic__json_a677297e84beb0f13cbd55525cf523e01.html index b1af7687d..fa7d44c84 100644 --- a/classnlohmann_1_1basic__json_a677297e84beb0f13cbd55525cf523e01.html +++ b/classnlohmann_1_1basic__json_a677297e84beb0f13cbd55525cf523e01.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -257,9 +259,9 @@ Illustration from cppreference.com
14  std::cout << *it << '\n';
15 }
a class to store JSON values
Definition: json.hpp:121
-
a reverse random access iterator for the basic_json class
Definition: json.hpp:4695
+
a reverse random access iterator for the basic_json class
Definition: json.hpp:4863
namespace for Niels Lohmann
Definition: json.hpp:56
-
reverse_iterator rbegin() noexcept
returns an iterator to the reverse-beginning
Definition: json.hpp:2479
+
reverse_iterator rbegin() noexcept
returns an iterator to the reverse-beginning
Definition: json.hpp:2647
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/rbegin.cpp -o rbegin 
. @@ -271,7 +273,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_a6944904b3b59769b1cf62ac2532cbe33.html b/classnlohmann_1_1basic__json_a6944904b3b59769b1cf62ac2532cbe33.html index 8edeb82c9..763155a02 100644 --- a/classnlohmann_1_1basic__json_a6944904b3b59769b1cf62ac2532cbe33.html +++ b/classnlohmann_1_1basic__json_a6944904b3b59769b1cf62ac2532cbe33.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a6a67c72ba65322bfcb28d170617dcdff.html b/classnlohmann_1_1basic__json_a6a67c72ba65322bfcb28d170617dcdff.html index f948d083e..8055e3dea 100644 --- a/classnlohmann_1_1basic__json_a6a67c72ba65322bfcb28d170617dcdff.html +++ b/classnlohmann_1_1basic__json_a6a67c72ba65322bfcb28d170617dcdff.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a6a7f45095675ac6fd1d018a0e41874be.html b/classnlohmann_1_1basic__json_a6a7f45095675ac6fd1d018a0e41874be.html index c2000d061..bf046de24 100644 --- a/classnlohmann_1_1basic__json_a6a7f45095675ac6fd1d018a0e41874be.html +++ b/classnlohmann_1_1basic__json_a6a7f45095675ac6fd1d018a0e41874be.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -293,10 +295,10 @@ template<class InputIT , typename std::enable_if< std::is_same< InputIT
20  std::cout << j_object_range << '\n';
21 }
a class to store JSON values
Definition: json.hpp:121
-
iterator end() noexcept
returns an iterator to one past the last element
Definition: json.hpp:2420
-
iterator find(typename object_t::key_type key)
find an element in an object
Definition: json.hpp:2300
+
iterator end() noexcept
returns an iterator to one past the last element
Definition: json.hpp:2588
+
iterator find(typename object_t::key_type key)
find an element in an object
Definition: json.hpp:2468
namespace for Niels Lohmann
Definition: json.hpp:56
-
iterator begin() noexcept
returns an iterator to the first element
Definition: json.hpp:2360
+
iterator begin() noexcept
returns an iterator to the first element
Definition: json.hpp:2528
Output:
["bravo","charly"]
 42
 {"one":"eins"}
@@ -310,7 +312,7 @@ template<class InputIT , typename std::enable_if< std::is_same< InputIT
 
 
 
diff --git a/classnlohmann_1_1basic__json_a6bbd3e72a870f1ba81ff6886b063b0fe.html b/classnlohmann_1_1basic__json_a6bbd3e72a870f1ba81ff6886b063b0fe.html
index 51170b848..d66a39194 100644
--- a/classnlohmann_1_1basic__json_a6bbd3e72a870f1ba81ff6886b063b0fe.html
+++ b/classnlohmann_1_1basic__json_a6bbd3e72a870f1ba81ff6886b063b0fe.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a6ca7995d600593954a7a498f5c0b1a7e.html b/classnlohmann_1_1basic__json_a6ca7995d600593954a7a498f5c0b1a7e.html
new file mode 100644
index 000000000..9c1549581
--- /dev/null
+++ b/classnlohmann_1_1basic__json_a6ca7995d600593954a7a498f5c0b1a7e.html
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::get_ptr
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename T , typename std::enable_if< std::is_pointer< T >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
std::add_pointer<typename std::remove_cv<typename std::remove_pointer<T>::type>::type>::type nlohmann::basic_json::get_ptr ()
+
+inline
+
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_a6dff6a02a2be250b8f8dc2f47be65544.html b/classnlohmann_1_1basic__json_a6dff6a02a2be250b8f8dc2f47be65544.html index cc36e395b..ce3a280c4 100644 --- a/classnlohmann_1_1basic__json_a6dff6a02a2be250b8f8dc2f47be65544.html +++ b/classnlohmann_1_1basic__json_a6dff6a02a2be250b8f8dc2f47be65544.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a6e2e21da48f5d9471716cd868a068327.html b/classnlohmann_1_1basic__json_a6e2e21da48f5d9471716cd868a068327.html index bdf0954f9..5f1ff6c5a 100644 --- a/classnlohmann_1_1basic__json_a6e2e21da48f5d9471716cd868a068327.html +++ b/classnlohmann_1_1basic__json_a6e2e21da48f5d9471716cd868a068327.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -261,7 +263,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a749e58042d8069f4f048ee4d23c43f63.html b/classnlohmann_1_1basic__json_a749e58042d8069f4f048ee4d23c43f63.html index 29f711659..e892f9406 100644 --- a/classnlohmann_1_1basic__json_a749e58042d8069f4f048ee4d23c43f63.html +++ b/classnlohmann_1_1basic__json_a749e58042d8069f4f048ee4d23c43f63.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a74a943800c7f103d0990d7eef82c6453.html b/classnlohmann_1_1basic__json_a74a943800c7f103d0990d7eef82c6453.html index 1b714950f..4c1f4fa95 100644 --- a/classnlohmann_1_1basic__json_a74a943800c7f103d0990d7eef82c6453.html +++ b/classnlohmann_1_1basic__json_a74a943800c7f103d0990d7eef82c6453.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -261,7 +263,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a74ccfa471a0c061876b247f820f3c741.html b/classnlohmann_1_1basic__json_a74ccfa471a0c061876b247f820f3c741.html index fcbc65b88..804de74c6 100644 --- a/classnlohmann_1_1basic__json_a74ccfa471a0c061876b247f820f3c741.html +++ b/classnlohmann_1_1basic__json_a74ccfa471a0c061876b247f820f3c741.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -305,13 +307,13 @@ template<template< typename U, typename V, typename...Args > class Obje
53  json j_filtered = json::parse(ss, cb);
54  std::cout << std::setw(4) << j_filtered << '\n';
55 }
-
basic_json<> json
default JSON class
Definition: json.hpp:6189
+
basic_json<> json
default JSON class
Definition: json.hpp:6357
a class to store JSON values
Definition: json.hpp:121
std::function< bool(int depth, parse_event_t event, basic_json &parsed)> parser_callback_t
per-element parser callback type
Definition: json.hpp:409
namespace for Niels Lohmann
Definition: json.hpp:56
-
void clear() noexcept
clears the contents
Definition: json.hpp:2785
+
void clear() noexcept
clears the contents
Definition: json.hpp:2953
the parser read a key of a value in an object
-
static basic_json parse(const string_t &s, parser_callback_t cb=nullptr)
deserialize from string
Definition: json.hpp:3297
+
static basic_json parse(const string_t &s, parser_callback_t cb=nullptr)
deserialize from string
Definition: json.hpp:3465
parse_event_t
JSON callback events.
Definition: json.hpp:345
Output:
{
     "Image": {
@@ -358,7 +360,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a793e5c1da2fc7de7a04b19eadbb3f2cb.html b/classnlohmann_1_1basic__json_a793e5c1da2fc7de7a04b19eadbb3f2cb.html
index 897a9b837..e44f54041 100644
--- a/classnlohmann_1_1basic__json_a793e5c1da2fc7de7a04b19eadbb3f2cb.html
+++ b/classnlohmann_1_1basic__json_a793e5c1da2fc7de7a04b19eadbb3f2cb.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -311,7 +313,7 @@ false
 
 
 
diff --git a/classnlohmann_1_1basic__json_a7c19a5c3be6cc755377ee41eade78baf.html b/classnlohmann_1_1basic__json_a7c19a5c3be6cc755377ee41eade78baf.html
index 6930d5f5e..c8e80f972 100644
--- a/classnlohmann_1_1basic__json_a7c19a5c3be6cc755377ee41eade78baf.html
+++ b/classnlohmann_1_1basic__json_a7c19a5c3be6cc755377ee41eade78baf.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a7d0db3b728d820d4984df78d97d2b104.html b/classnlohmann_1_1basic__json_a7d0db3b728d820d4984df78d97d2b104.html
index a39f4546d..186078854 100644
--- a/classnlohmann_1_1basic__json_a7d0db3b728d820d4984df78d97d2b104.html
+++ b/classnlohmann_1_1basic__json_a7d0db3b728d820d4984df78d97d2b104.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a7d1b990f2c12fecb57db1504fdadd0bb.html b/classnlohmann_1_1basic__json_a7d1b990f2c12fecb57db1504fdadd0bb.html
index 400873dfd..2da88ce42 100644
--- a/classnlohmann_1_1basic__json_a7d1b990f2c12fecb57db1504fdadd0bb.html
+++ b/classnlohmann_1_1basic__json_a7d1b990f2c12fecb57db1504fdadd0bb.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a7dab69b10b98e7bc694339720e37fb2b.html b/classnlohmann_1_1basic__json_a7dab69b10b98e7bc694339720e37fb2b.html
index 2e0b47bbc..16bb10ec0 100644
--- a/classnlohmann_1_1basic__json_a7dab69b10b98e7bc694339720e37fb2b.html
+++ b/classnlohmann_1_1basic__json_a7dab69b10b98e7bc694339720e37fb2b.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a80a89ddbe4cb7ef15b049febee208cc8.html b/classnlohmann_1_1basic__json_a80a89ddbe4cb7ef15b049febee208cc8.html
index b8e6c28e4..a9680d118 100644
--- a/classnlohmann_1_1basic__json_a80a89ddbe4cb7ef15b049febee208cc8.html
+++ b/classnlohmann_1_1basic__json_a80a89ddbe4cb7ef15b049febee208cc8.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -280,7 +282,7 @@ null
 
 
 
diff --git a/classnlohmann_1_1basic__json_a80ceaa3bdd346292273b309e08525c1c.html b/classnlohmann_1_1basic__json_a80ceaa3bdd346292273b309e08525c1c.html
index d15c327d9..3c3f47262 100644
--- a/classnlohmann_1_1basic__json_a80ceaa3bdd346292273b309e08525c1c.html
+++ b/classnlohmann_1_1basic__json_a80ceaa3bdd346292273b309e08525c1c.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a83cbbfbf5d3ecbad6de8ece0be6b36c4.html b/classnlohmann_1_1basic__json_a83cbbfbf5d3ecbad6de8ece0be6b36c4.html
index 19827f375..d55ed6801 100644
--- a/classnlohmann_1_1basic__json_a83cbbfbf5d3ecbad6de8ece0be6b36c4.html
+++ b/classnlohmann_1_1basic__json_a83cbbfbf5d3ecbad6de8ece0be6b36c4.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -268,7 +270,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
26  //std::cout << j_array_empty.front() << '\n'; // would throw
27  std::cout << j_string.front() << '\n';
28 }
-
reference front()
access the first element
Definition: json.hpp:2098
+
reference front()
access the first element
Definition: json.hpp:2266
a class to store JSON values
Definition: json.hpp:121
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
@@ -289,7 +291,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a87698fe3ae2652b3ad5eab1b717fee5f.html b/classnlohmann_1_1basic__json_a87698fe3ae2652b3ad5eab1b717fee5f.html index b78893e93..b371d4eae 100644 --- a/classnlohmann_1_1basic__json_a87698fe3ae2652b3ad5eab1b717fee5f.html +++ b/classnlohmann_1_1basic__json_a87698fe3ae2652b3ad5eab1b717fee5f.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a879007de260e6a128fbbce4e78c804af.html b/classnlohmann_1_1basic__json_a879007de260e6a128fbbce4e78c804af.html index a49c0c814..65ee73ca7 100644 --- a/classnlohmann_1_1basic__json_a879007de260e6a128fbbce4e78c804af.html +++ b/classnlohmann_1_1basic__json_a879007de260e6a128fbbce4e78c804af.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -259,8 +261,8 @@ Illustration from cppreference.com
15 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
a const random access iterator for the basic_json class
Definition: json.hpp:4200
-
const_iterator cbegin() const noexcept
returns a const iterator to the first element
Definition: json.hpp:2395
+
a const random access iterator for the basic_json class
Definition: json.hpp:4368
+
const_iterator cbegin() const noexcept
returns a const iterator to the first element
Definition: json.hpp:2563
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/cbegin.cpp -o cbegin 
. @@ -272,7 +274,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_a87db51b6b936fb2ea293cdbc8702dcb8.html b/classnlohmann_1_1basic__json_a87db51b6b936fb2ea293cdbc8702dcb8.html index da536dd0c..109663e59 100644 --- a/classnlohmann_1_1basic__json_a87db51b6b936fb2ea293cdbc8702dcb8.html +++ b/classnlohmann_1_1basic__json_a87db51b6b936fb2ea293cdbc8702dcb8.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -261,7 +263,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a8b526709d395142b68d21abfbfff17c3.html b/classnlohmann_1_1basic__json_a8b526709d395142b68d21abfbfff17c3.html index 9d2f456bd..e709fbc87 100644 --- a/classnlohmann_1_1basic__json_a8b526709d395142b68d21abfbfff17c3.html +++ b/classnlohmann_1_1basic__json_a8b526709d395142b68d21abfbfff17c3.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -268,7 +270,7 @@ template<template< typename U, typename V, typename...Args > class Obje
26  //std::cout << j_array_empty.front() << '\n'; // would throw
27  std::cout << j_string.front() << '\n';
28 }
-
reference front()
access the first element
Definition: json.hpp:2098
+
reference front()
access the first element
Definition: json.hpp:2266
a class to store JSON values
Definition: json.hpp:121
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
@@ -289,7 +291,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_a8c40cd9ead4de7c82f28268bdf0ec98a.html b/classnlohmann_1_1basic__json_a8c40cd9ead4de7c82f28268bdf0ec98a.html index 2e440697f..a280214b8 100644 --- a/classnlohmann_1_1basic__json_a8c40cd9ead4de7c82f28268bdf0ec98a.html +++ b/classnlohmann_1_1basic__json_a8c40cd9ead4de7c82f28268bdf0ec98a.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -284,7 +286,7 @@ template<template< typename U, typename V, typename...Args > class Obje
33 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
void clear() noexcept
clears the contents
Definition: json.hpp:2785
+
void clear() noexcept
clears the contents
Definition: json.hpp:2953
Output:
null
 false
 0
@@ -302,7 +304,7 @@ false
 
 
 
diff --git a/classnlohmann_1_1basic__json_a8e34088252a3ee6b2377f3a1f26dd1ba.html b/classnlohmann_1_1basic__json_a8e34088252a3ee6b2377f3a1f26dd1ba.html
index c3d487753..f8baf3f68 100644
--- a/classnlohmann_1_1basic__json_a8e34088252a3ee6b2377f3a1f26dd1ba.html
+++ b/classnlohmann_1_1basic__json_a8e34088252a3ee6b2377f3a1f26dd1ba.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a930e14150ffa067bcf56d35cb00271e1.html b/classnlohmann_1_1basic__json_a930e14150ffa067bcf56d35cb00271e1.html
index 13336a4d7..59424aaae 100644
--- a/classnlohmann_1_1basic__json_a930e14150ffa067bcf56d35cb00271e1.html
+++ b/classnlohmann_1_1basic__json_a930e14150ffa067bcf56d35cb00271e1.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -259,7 +261,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_a951a76ba057b3be948e7ba5c2c01cd5a.html b/classnlohmann_1_1basic__json_a951a76ba057b3be948e7ba5c2c01cd5a.html
index d3b4b5921..d6b8b2730 100644
--- a/classnlohmann_1_1basic__json_a951a76ba057b3be948e7ba5c2c01cd5a.html
+++ b/classnlohmann_1_1basic__json_a951a76ba057b3be948e7ba5c2c01cd5a.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -311,7 +313,7 @@ template<class CompatibleObjectType , typename std::enable_if< std::is_con
 
 
 
diff --git a/classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html b/classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html
index 75872756f..c7242e9ca 100644
--- a/classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html
+++ b/classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -232,6 +234,84 @@ template<typename T > 
   
 
 
+

Implict type conversion between the JSON value and a compatible value. The call is realized by calling get() const.

+
Template Parameters
+ + +
Ttype compatible to the JSON value, for instance int for JSON integer numbers, bool for JSON booleans, or std::vector types for JSON arrays
+
+
+
Returns
copy of the JSON value, converted to type T
+
Exceptions
+ + +
std::domain_errorin case passed type T is incompatible to JSON, thrown by get() const
+
+
+
Complexity
Linear in the size of the JSON value.
+
Example
The example below shows serveral conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers, (2) A JSON array can be converted to a standard std::vector<int>, (3) A JSON object can be converted to C++ assiciative containers such as std::unordered_map<std::string, json>.
1 #include <json.hpp>
+
2 #include <unordered_map>
+
3 
+
4 using namespace nlohmann;
+
5 
+
6 int main()
+
7 {
+
8  // create a JSON value with different types
+
9  json json_types =
+
10  {
+
11  {"boolean", true},
+
12  {
+
13  "number", {
+
14  {"integer", 42},
+
15  {"floating-point", 17.23}
+
16  }
+
17  },
+
18  {"string", "Hello, world!"},
+
19  {"array", {1, 2, 3, 4, 5}},
+
20  {"null", nullptr}
+
21  };
+
22 
+
23  // use implicit conversions
+
24  bool v1 = json_types["boolean"];
+
25  int v2 = json_types["number"]["integer"];
+
26  short v3 = json_types["number"]["integer"];
+
27  float v4 = json_types["number"]["floating-point"];
+
28  int v5 = json_types["number"]["floating-point"];
+
29  std::string v6 = json_types["string"];
+
30  std::vector<short> v7 = json_types["array"];
+
31  std::unordered_map<std::string, json> v8 = json_types;
+
32 
+
33  // print the conversion results
+
34  std::cout << v1 << '\n';
+
35  std::cout << v2 << ' ' << v3 << '\n';
+
36  std::cout << v4 << ' ' << v5 << '\n';
+
37  std::cout << v6 << '\n';
+
38 
+
39  for (auto i : v7)
+
40  {
+
41  std::cout << i << ' ';
+
42  }
+
43  std::cout << "\n\n";
+
44 
+
45  for (auto i : v8)
+
46  {
+
47  std::cout << i.first << ": " << i.second << '\n';
+
48  }
+
49 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
Output:
1
+42 42
+17.23 17
+Hello, world!
+1 2 3 4 5 
+
+string: "Hello, world!"
+number: {"floating-point":17.23,"integer":42}
+null: null
+boolean: true
+array: [1,2,3,4,5]
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/operator__T.cpp -o operator__T 
.
@@ -241,7 +321,7 @@ template<typename T > diff --git a/classnlohmann_1_1basic__json_a9daafb4c15ed5a008cb825bbd8c29d87.html b/classnlohmann_1_1basic__json_a9daafb4c15ed5a008cb825bbd8c29d87.html index 5314e20a6..8b83bc035 100644 --- a/classnlohmann_1_1basic__json_a9daafb4c15ed5a008cb825bbd8c29d87.html +++ b/classnlohmann_1_1basic__json_a9daafb4c15ed5a008cb825bbd8c29d87.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -242,7 +244,7 @@ template<typename T , std::size_t n> diff --git a/classnlohmann_1_1basic__json_a9dc1b1d2c71b1253b0dec3c5f9217057.html b/classnlohmann_1_1basic__json_a9dc1b1d2c71b1253b0dec3c5f9217057.html new file mode 100644 index 000000000..2a0f2d29b --- /dev/null +++ b/classnlohmann_1_1basic__json_a9dc1b1d2c71b1253b0dec3c5f9217057.html @@ -0,0 +1,289 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get_ptr + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get_ptr ()
+
+inline
+
+

Implict pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee of the result yields an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+
Example
The example below shows how pointers to internal values of a JSON value can be requested. Note that no type conversions are made and a nullptr is returned if the value and the requested pointer type does not match.
1 #include <json.hpp>
+
2 
+
3 using namespace nlohmann;
+
4 
+
5 int main()
+
6 {
+
7  // create a JSON boolean
+
8  json value = 17;
+
9 
+
10  // explicitly getting pointers
+
11  auto p1 = value.get_ptr<const json::number_integer_t*>();
+
12  auto p2 = value.get_ptr<json::number_integer_t*>();
+
13  auto p3 = value.get_ptr<json::number_integer_t* const>();
+
14  auto p4 = value.get_ptr<const json::number_integer_t* const>();
+
15  auto p5 = value.get_ptr<json::number_float_t*>();
+
16 
+
17  // print the pointees
+
18  std::cout << *p1 << ' ' << *p2 << ' ' << *p3 << ' ' << *p4 << '\n';
+
19  std::cout << std::boolalpha << (p5 == nullptr) << '\n';
+
20 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
NumberIntegerType number_integer_t
a type for a number (integer)
Definition: json.hpp:195
+
NumberFloatType number_float_t
a type for a number (floating-point)
Definition: json.hpp:197
+
PointerType get_ptr()
get a pointer value (implicit)
Definition: json.hpp:1933
+
Output:
17 17 17 17
+true
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get_ptr.cpp -o get_ptr 
.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_aa1f3b3f1dca79392d6727b81f9668c6c.html b/classnlohmann_1_1basic__json_aa1f3b3f1dca79392d6727b81f9668c6c.html index 87534966b..e80152454 100644 --- a/classnlohmann_1_1basic__json_aa1f3b3f1dca79392d6727b81f9668c6c.html +++ b/classnlohmann_1_1basic__json_aa1f3b3f1dca79392d6727b81f9668c6c.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -272,7 +274,7 @@ template<template< typename U, typename V, typename...Args > class Obje
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
array (ordered collection of values)
-
reference back()
access the last element
Definition: json.hpp:2130
+
reference back()
access the last element
Definition: json.hpp:2298
Output:
true
 17
 23.42
@@ -289,7 +291,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_aa23ac5808b9aa1a08d18e3ebea25c7ce.html b/classnlohmann_1_1basic__json_aa23ac5808b9aa1a08d18e3ebea25c7ce.html
index 37cc676a9..b1387f37a 100644
--- a/classnlohmann_1_1basic__json_aa23ac5808b9aa1a08d18e3ebea25c7ce.html
+++ b/classnlohmann_1_1basic__json_aa23ac5808b9aa1a08d18e3ebea25c7ce.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_aa366948498c70661eac025a841507db9.html b/classnlohmann_1_1basic__json_aa366948498c70661eac025a841507db9.html
index 8059a96d9..52aa43749 100644
--- a/classnlohmann_1_1basic__json_aa366948498c70661eac025a841507db9.html
+++ b/classnlohmann_1_1basic__json_aa366948498c70661eac025a841507db9.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -257,9 +259,9 @@ Illustration from cppreference.com
 
14  std::cout << *it << '\n';
15 }
a class to store JSON values
Definition: json.hpp:121
-
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4717
+
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4885
namespace for Niels Lohmann
Definition: json.hpp:56
-
const_reverse_iterator crbegin() const noexcept
returns a const reverse iterator to the last element
Definition: json.hpp:2543
+
const_reverse_iterator crbegin() const noexcept
returns a const reverse iterator to the last element
Definition: json.hpp:2711
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/crbegin.cpp -o crbegin 
. @@ -271,7 +273,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_aa5a06ef7009d3a8c72cc173f1f5da760.html b/classnlohmann_1_1basic__json_aa5a06ef7009d3a8c72cc173f1f5da760.html index bf14a30ce..719881d3c 100644 --- a/classnlohmann_1_1basic__json_aa5a06ef7009d3a8c72cc173f1f5da760.html +++ b/classnlohmann_1_1basic__json_aa5a06ef7009d3a8c72cc173f1f5da760.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -278,7 +280,7 @@ false diff --git a/classnlohmann_1_1basic__json_aa70eb86b6e6ada371d95adb7d171c2af.html b/classnlohmann_1_1basic__json_aa70eb86b6e6ada371d95adb7d171c2af.html index ef21b32bc..0c0ef474b 100644 --- a/classnlohmann_1_1basic__json_aa70eb86b6e6ada371d95adb7d171c2af.html +++ b/classnlohmann_1_1basic__json_aa70eb86b6e6ada371d95adb7d171c2af.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -262,8 +264,8 @@ Illustration from cppreference.com
18 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
const_iterator cend() const noexcept
returns a const iterator to one past the last element
Definition: json.hpp:2455
-
a const random access iterator for the basic_json class
Definition: json.hpp:4200
+
const_iterator cend() const noexcept
returns a const iterator to one past the last element
Definition: json.hpp:2623
+
a const random access iterator for the basic_json class
Definition: json.hpp:4368
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/cend.cpp -o cend 
. @@ -275,7 +277,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_aa71e977d31f470689883ac60d16ea4ac.html b/classnlohmann_1_1basic__json_aa71e977d31f470689883ac60d16ea4ac.html index 76963f832..4ced94a49 100644 --- a/classnlohmann_1_1basic__json_aa71e977d31f470689883ac60d16ea4ac.html +++ b/classnlohmann_1_1basic__json_aa71e977d31f470689883ac60d16ea4ac.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -267,7 +269,7 @@ template<template< typename U, typename V, typename...Args > class Obje
ArrayType< basic_json, AllocatorType< basic_json >> array_t
a type for an array
Definition: json.hpp:189
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
void swap(reference other) noexcept(std::is_nothrow_move_constructible< value_t >::value andstd::is_nothrow_move_assignable< value_t >::value andstd::is_nothrow_move_constructible< json_value >::value andstd::is_nothrow_move_assignable< json_value >::value)
exchanges the values
Definition: json.hpp:2933
+
void swap(reference other) noexcept(std::is_nothrow_move_constructible< value_t >::value andstd::is_nothrow_move_assignable< value_t >::value andstd::is_nothrow_move_constructible< json_value >::value andstd::is_nothrow_move_assignable< json_value >::value)
exchanges the values
Definition: json.hpp:3101
Output:
value = {"array":["Snap","Crackle","Pop"]}
 array = [1,2,3,4]
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/swap__array_t.cpp -o swap__array_t 
. @@ -280,7 +282,7 @@ array = [1,2,3,4] diff --git a/classnlohmann_1_1basic__json_aa87c30bfeaa395f12bb101934395a637.html b/classnlohmann_1_1basic__json_aa87c30bfeaa395f12bb101934395a637.html index 5e4117d81..96582f8c0 100644 --- a/classnlohmann_1_1basic__json_aa87c30bfeaa395f12bb101934395a637.html +++ b/classnlohmann_1_1basic__json_aa87c30bfeaa395f12bb101934395a637.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -252,7 +254,7 @@ template<class T , typename std::enable_if< std::is_same< T, typename b diff --git a/classnlohmann_1_1basic__json_aa8e533b4290ade5bf5a33104a69b202a.html b/classnlohmann_1_1basic__json_aa8e533b4290ade5bf5a33104a69b202a.html index a9f06c7dc..f2f171e6a 100644 --- a/classnlohmann_1_1basic__json_aa8e533b4290ade5bf5a33104a69b202a.html +++ b/classnlohmann_1_1basic__json_aa8e533b4290ade5bf5a33104a69b202a.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -261,7 +263,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aac185a137428a7337aa620de07bfbbd7.html b/classnlohmann_1_1basic__json_aac185a137428a7337aa620de07bfbbd7.html index 15ab17a23..f6c84acf1 100644 --- a/classnlohmann_1_1basic__json_aac185a137428a7337aa620de07bfbbd7.html +++ b/classnlohmann_1_1basic__json_aac185a137428a7337aa620de07bfbbd7.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -254,7 +256,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aacd442b66140c764c594ac8ad7dfd5b3.html b/classnlohmann_1_1basic__json_aacd442b66140c764c594ac8ad7dfd5b3.html index 15ba3c0b5..55aa14bc0 100644 --- a/classnlohmann_1_1basic__json_aacd442b66140c764c594ac8ad7dfd5b3.html +++ b/classnlohmann_1_1basic__json_aacd442b66140c764c594ac8ad7dfd5b3.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -265,7 +267,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aacf6c869f6a9c66ac1bc99e93f310044.html b/classnlohmann_1_1basic__json_aacf6c869f6a9c66ac1bc99e93f310044.html index f4a7cfc3e..5d32cf996 100644 --- a/classnlohmann_1_1basic__json_aacf6c869f6a9c66ac1bc99e93f310044.html +++ b/classnlohmann_1_1basic__json_aacf6c869f6a9c66ac1bc99e93f310044.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aaf363408931d76472ded14017e59c9e8.html b/classnlohmann_1_1basic__json_aaf363408931d76472ded14017e59c9e8.html index f126dfb81..c5c26f206 100644 --- a/classnlohmann_1_1basic__json_aaf363408931d76472ded14017e59c9e8.html +++ b/classnlohmann_1_1basic__json_aaf363408931d76472ded14017e59c9e8.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -305,7 +307,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aafa839f2a74dc1b5060314b3423143b8.html b/classnlohmann_1_1basic__json_aafa839f2a74dc1b5060314b3423143b8.html index 4259f6470..5a6641c05 100644 --- a/classnlohmann_1_1basic__json_aafa839f2a74dc1b5060314b3423143b8.html +++ b/classnlohmann_1_1basic__json_aafa839f2a74dc1b5060314b3423143b8.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ab3a3c6547a2ea16d33879a50dfaad337.html b/classnlohmann_1_1basic__json_ab3a3c6547a2ea16d33879a50dfaad337.html new file mode 100644 index 000000000..9d0662125 --- /dev/null +++ b/classnlohmann_1_1basic__json_ab3a3c6547a2ea16d33879a50dfaad337.html @@ -0,0 +1,331 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename T , typename std::enable_if< not std::is_pointer< T >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
T nlohmann::basic_json::get () const
+
+inline
+
+

Explicit type conversion between the JSON value and a compatible value.

+
Template Parameters
+ + +
Tnon-pointer type compatible to the JSON value, for instance int for JSON integer numbers, bool for JSON booleans, or std::vector types for JSON arrays
+
+
+
Returns
copy of the JSON value, converted to type T
+
Exceptions
+ + +
std::domain_errorin case passed type T is incompatible to JSON
+
+
+
Complexity
Linear in the size of the JSON value.
+
Example
The example below shows serveral conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers, (2) A JSON array can be converted to a standard std::vector<int>, (3) A JSON object can be converted to C++ assiciative containers such as std::unordered_map<std::string, json>.
1 #include <json.hpp>
+
2 #include <unordered_map>
+
3 
+
4 using namespace nlohmann;
+
5 
+
6 int main()
+
7 {
+
8  // create a JSON value with different types
+
9  json json_types =
+
10  {
+
11  {"boolean", true},
+
12  {
+
13  "number", {
+
14  {"integer", 42},
+
15  {"floating-point", 17.23}
+
16  }
+
17  },
+
18  {"string", "Hello, world!"},
+
19  {"array", {1, 2, 3, 4, 5}},
+
20  {"null", nullptr}
+
21  };
+
22 
+
23  // use explicit conversions
+
24  auto v1 = json_types["boolean"].get<bool>();
+
25  auto v2 = json_types["number"]["integer"].get<int>();
+
26  auto v3 = json_types["number"]["integer"].get<short>();
+
27  auto v4 = json_types["number"]["floating-point"].get<float>();
+
28  auto v5 = json_types["number"]["floating-point"].get<int>();
+
29  auto v6 = json_types["string"].get<std::string>();
+
30  auto v7 = json_types["array"].get<std::vector<short>>();
+
31  auto v8 = json_types.get<std::unordered_map<std::string, json>>();
+
32 
+
33  // print the conversion results
+
34  std::cout << v1 << '\n';
+
35  std::cout << v2 << ' ' << v3 << '\n';
+
36  std::cout << v4 << ' ' << v5 << '\n';
+
37  std::cout << v6 << '\n';
+
38 
+
39  for (auto i : v7)
+
40  {
+
41  std::cout << i << ' ';
+
42  }
+
43  std::cout << "\n\n";
+
44 
+
45  for (auto i : v8)
+
46  {
+
47  std::cout << i.first << ": " << i.second << '\n';
+
48  }
+
49 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
T get() const
get a value (explicit)
Definition: json.hpp:1863
+
Output:
1
+42 42
+17.23 17
+Hello, world!
+1 2 3 4 5 
+
+string: "Hello, world!"
+number: {"floating-point":17.23,"integer":42}
+null: null
+boolean: true
+array: [1,2,3,4,5]
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get__T_const.cpp -o get__T_const 
.
+
See also
operator T() const for implicit conversion
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_ab8682827348d8eb61507bbe8c7829ce8.html b/classnlohmann_1_1basic__json_ab8682827348d8eb61507bbe8c7829ce8.html index 12bf15356..20cf99ce5 100644 --- a/classnlohmann_1_1basic__json_ab8682827348d8eb61507bbe8c7829ce8.html +++ b/classnlohmann_1_1basic__json_ab8682827348d8eb61507bbe8c7829ce8.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -278,7 +280,7 @@ false diff --git a/classnlohmann_1_1basic__json_ab9da2afc6f77295f25252725fde142a6.html b/classnlohmann_1_1basic__json_ab9da2afc6f77295f25252725fde142a6.html index 5731050b8..c96fb01d8 100644 --- a/classnlohmann_1_1basic__json_ab9da2afc6f77295f25252725fde142a6.html +++ b/classnlohmann_1_1basic__json_ab9da2afc6f77295f25252725fde142a6.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -272,7 +274,7 @@ template<template< typename U, typename V, typename...Args > class Obje
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
array (ordered collection of values)
-
reference back()
access the last element
Definition: json.hpp:2130
+
reference back()
access the last element
Definition: json.hpp:2298
Output:
true
 17
 23.42
@@ -289,7 +291,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_abb086fd840bedb05e0aee67f70eba1a9.html b/classnlohmann_1_1basic__json_abb086fd840bedb05e0aee67f70eba1a9.html
index 3e73b793d..a986ec81d 100644
--- a/classnlohmann_1_1basic__json_abb086fd840bedb05e0aee67f70eba1a9.html
+++ b/classnlohmann_1_1basic__json_abb086fd840bedb05e0aee67f70eba1a9.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -278,7 +280,7 @@ false
 
 
 
diff --git a/classnlohmann_1_1basic__json_abc2b49c2c44c61a15d4b272a85b41064.html b/classnlohmann_1_1basic__json_abc2b49c2c44c61a15d4b272a85b41064.html
index ff85d957a..d16b77af4 100644
--- a/classnlohmann_1_1basic__json_abc2b49c2c44c61a15d4b272a85b41064.html
+++ b/classnlohmann_1_1basic__json_abc2b49c2c44c61a15d4b272a85b41064.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -278,7 +280,7 @@ true
 
 
 
diff --git a/classnlohmann_1_1basic__json_ac4011bd0781e51afe4994d2b09fd27e9.html b/classnlohmann_1_1basic__json_ac4011bd0781e51afe4994d2b09fd27e9.html
index 7732409c8..86456a288 100644
--- a/classnlohmann_1_1basic__json_ac4011bd0781e51afe4994d2b09fd27e9.html
+++ b/classnlohmann_1_1basic__json_ac4011bd0781e51afe4994d2b09fd27e9.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_ac82abedf356d252e0589850c3d8b35ba.html b/classnlohmann_1_1basic__json_ac82abedf356d252e0589850c3d8b35ba.html
index d3521deba..7ce1353b5 100644
--- a/classnlohmann_1_1basic__json_ac82abedf356d252e0589850c3d8b35ba.html
+++ b/classnlohmann_1_1basic__json_ac82abedf356d252e0589850c3d8b35ba.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_ac943391891fcde0a71a15ce990e0f7f4.html b/classnlohmann_1_1basic__json_ac943391891fcde0a71a15ce990e0f7f4.html
index 7cbb2b06b..46204a583 100644
--- a/classnlohmann_1_1basic__json_ac943391891fcde0a71a15ce990e0f7f4.html
+++ b/classnlohmann_1_1basic__json_ac943391891fcde0a71a15ce990e0f7f4.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -280,7 +282,7 @@ true
 
 
 
diff --git a/classnlohmann_1_1basic__json_acbf7f957ecb6ce19cdc5b40b5d6b6333.html b/classnlohmann_1_1basic__json_acbf7f957ecb6ce19cdc5b40b5d6b6333.html
index 8c4ce814d..d2059ac35 100644
--- a/classnlohmann_1_1basic__json_acbf7f957ecb6ce19cdc5b40b5d6b6333.html
+++ b/classnlohmann_1_1basic__json_acbf7f957ecb6ce19cdc5b40b5d6b6333.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -269,7 +271,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_ace5106fb70f029fd7dfe99fc9eace3b5.html b/classnlohmann_1_1basic__json_ace5106fb70f029fd7dfe99fc9eace3b5.html
index 089d4207e..e823063cc 100644
--- a/classnlohmann_1_1basic__json_ace5106fb70f029fd7dfe99fc9eace3b5.html
+++ b/classnlohmann_1_1basic__json_ace5106fb70f029fd7dfe99fc9eace3b5.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -260,9 +262,9 @@ Illustration from cppreference.com
 
17  std::cout << *it << '\n';
18 }
a class to store JSON values
Definition: json.hpp:121
-
a reverse random access iterator for the basic_json class
Definition: json.hpp:4695
+
a reverse random access iterator for the basic_json class
Definition: json.hpp:4863
namespace for Niels Lohmann
Definition: json.hpp:56
-
reverse_iterator rend() noexcept
returns an iterator to the reverse-end
Definition: json.hpp:2511
+
reverse_iterator rend() noexcept
returns an iterator to the reverse-end
Definition: json.hpp:2679
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/rend.cpp -o rend 
. @@ -274,7 +276,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_ace8338e57fdb11e1955c2a0c2d782069.html b/classnlohmann_1_1basic__json_ace8338e57fdb11e1955c2a0c2d782069.html index 7b9378d6c..f41d35186 100644 --- a/classnlohmann_1_1basic__json_ace8338e57fdb11e1955c2a0c2d782069.html +++ b/classnlohmann_1_1basic__json_ace8338e57fdb11e1955c2a0c2d782069.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ad1fea64ed433a6f4e7408c8c7bbc4a37.html b/classnlohmann_1_1basic__json_ad1fea64ed433a6f4e7408c8c7bbc4a37.html index b25e57106..0ca7a89e0 100644 --- a/classnlohmann_1_1basic__json_ad1fea64ed433a6f4e7408c8c7bbc4a37.html +++ b/classnlohmann_1_1basic__json_ad1fea64ed433a6f4e7408c8c7bbc4a37.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -239,7 +241,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html b/classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html index 0ac573b2e..e9dfc6957 100644 --- a/classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html +++ b/classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -239,7 +241,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ad62e88e5c60e03e094e6250f6bb2f9cf.html b/classnlohmann_1_1basic__json_ad62e88e5c60e03e094e6250f6bb2f9cf.html index bef3b9610..4ae92916e 100644 --- a/classnlohmann_1_1basic__json_ad62e88e5c60e03e094e6250f6bb2f9cf.html +++ b/classnlohmann_1_1basic__json_ad62e88e5c60e03e094e6250f6bb2f9cf.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -262,8 +264,8 @@ Illustration from cppreference.com
18 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
const_iterator cend() const noexcept
returns a const iterator to one past the last element
Definition: json.hpp:2455
-
a const random access iterator for the basic_json class
Definition: json.hpp:4200
+
const_iterator cend() const noexcept
returns a const iterator to one past the last element
Definition: json.hpp:2623
+
a const random access iterator for the basic_json class
Definition: json.hpp:4368
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/cend.cpp -o cend 
. @@ -275,7 +277,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_ad7067a1a8ad2d88125915ada6d4d79b7.html b/classnlohmann_1_1basic__json_ad7067a1a8ad2d88125915ada6d4d79b7.html index 66d4403a4..1a3ba8fd8 100644 --- a/classnlohmann_1_1basic__json_ad7067a1a8ad2d88125915ada6d4d79b7.html +++ b/classnlohmann_1_1basic__json_ad7067a1a8ad2d88125915ada6d4d79b7.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -333,7 +335,7 @@ template<class CompatibleArrayType , typename std::enable_if< not std::is_ diff --git a/classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html b/classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html index 4a4ccfe0e..08d3130d8 100644 --- a/classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html +++ b/classnlohmann_1_1basic__json_ad7b898eb39e6e6c1cc870dde1f9517f0.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -260,8 +262,8 @@ Illustration from cppreference.com
17  std::cout << *it << '\n';
18 }
a class to store JSON values
Definition: json.hpp:121
-
const_reverse_iterator crend() const noexcept
returns a const reverse iterator to one before the first
Definition: json.hpp:2566
-
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4717
+
const_reverse_iterator crend() const noexcept
returns a const reverse iterator to one before the first
Definition: json.hpp:2734
+
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4885
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/crend.cpp -o crend 
. @@ -274,7 +276,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_ad7f7033fb309043a218572ea55797f40.html b/classnlohmann_1_1basic__json_ad7f7033fb309043a218572ea55797f40.html new file mode 100644 index 000000000..51fd7921c --- /dev/null +++ b/classnlohmann_1_1basic__json_ad7f7033fb309043a218572ea55797f40.html @@ -0,0 +1,261 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::get + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< T >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get ()
+
+inline
+
+

Explicit pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee results in an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_ad81f3cedf09ccd70b2f3239d148c8752.html b/classnlohmann_1_1basic__json_ad81f3cedf09ccd70b2f3239d148c8752.html index ee7f6c9b6..b4456806c 100644 --- a/classnlohmann_1_1basic__json_ad81f3cedf09ccd70b2f3239d148c8752.html +++ b/classnlohmann_1_1basic__json_ad81f3cedf09ccd70b2f3239d148c8752.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -239,7 +241,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ad8f84e6fb9bbf9a7bc767962ad0fe3a1.html b/classnlohmann_1_1basic__json_ad8f84e6fb9bbf9a7bc767962ad0fe3a1.html index 739a27675..bb9a507f9 100644 --- a/classnlohmann_1_1basic__json_ad8f84e6fb9bbf9a7bc767962ad0fe3a1.html +++ b/classnlohmann_1_1basic__json_ad8f84e6fb9bbf9a7bc767962ad0fe3a1.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -260,8 +262,8 @@ Illustration from cppreference.com
17  std::cout << *it << '\n';
18 }
a class to store JSON values
Definition: json.hpp:121
-
a random access iterator for the basic_json class
Definition: json.hpp:3684
-
iterator end() noexcept
returns an iterator to one past the last element
Definition: json.hpp:2420
+
a random access iterator for the basic_json class
Definition: json.hpp:3852
+
iterator end() noexcept
returns an iterator to one past the last element
Definition: json.hpp:2588
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/end.cpp -o end 
. @@ -274,7 +276,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_ad9d11a509fde101780017c73d1d5f34c.html b/classnlohmann_1_1basic__json_ad9d11a509fde101780017c73d1d5f34c.html new file mode 100644 index 000000000..e20cbf425 --- /dev/null +++ b/classnlohmann_1_1basic__json_ad9d11a509fde101780017c73d1d5f34c.html @@ -0,0 +1,329 @@ + + + + + + +JSON for Modern C++: nlohmann::basic_json::operator ValueType + + + + + + + + + + + +
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename ValueType >
+ + + + + +
+ + + + + + + +
nlohmann::basic_json::operator ValueType () const
+
+inline
+
+

Implict type conversion between the JSON value and a compatible value. The call is realized by calling get() const.

+
Template Parameters
+ + +
ValueTypetype compatible to the JSON value, for instance int for JSON integer numbers, bool for JSON booleans, or std::vector types for JSON arrays
+
+
+
Returns
copy of the JSON value, converted to type ValueType
+
Exceptions
+ + +
std::domain_errorin case passed type ValueType is incompatible to JSON, thrown by get() const
+
+
+
Complexity
Linear in the size of the JSON value.
+
Example
The example below shows serveral conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers, (2) A JSON array can be converted to a standard std::vector<short>, (3) A JSON object can be converted to C++ assiciative containers such as std::unordered_map<std::string, json>.
1 #include <json.hpp>
+
2 #include <unordered_map>
+
3 
+
4 using namespace nlohmann;
+
5 
+
6 int main()
+
7 {
+
8  // create a JSON value with different types
+
9  json json_types =
+
10  {
+
11  {"boolean", true},
+
12  {
+
13  "number", {
+
14  {"integer", 42},
+
15  {"floating-point", 17.23}
+
16  }
+
17  },
+
18  {"string", "Hello, world!"},
+
19  {"array", {1, 2, 3, 4, 5}},
+
20  {"null", nullptr}
+
21  };
+
22 
+
23  // use implicit conversions
+
24  bool v1 = json_types["boolean"];
+
25  int v2 = json_types["number"]["integer"];
+
26  short v3 = json_types["number"]["integer"];
+
27  float v4 = json_types["number"]["floating-point"];
+
28  int v5 = json_types["number"]["floating-point"];
+
29  std::string v6 = json_types["string"];
+
30  std::vector<short> v7 = json_types["array"];
+
31  std::unordered_map<std::string, json> v8 = json_types;
+
32 
+
33  // print the conversion results
+
34  std::cout << v1 << '\n';
+
35  std::cout << v2 << ' ' << v3 << '\n';
+
36  std::cout << v4 << ' ' << v5 << '\n';
+
37  std::cout << v6 << '\n';
+
38 
+
39  for (auto i : v7)
+
40  {
+
41  std::cout << i << ' ';
+
42  }
+
43  std::cout << "\n\n";
+
44 
+
45  for (auto i : v8)
+
46  {
+
47  std::cout << i.first << ": " << i.second << '\n';
+
48  }
+
49 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
Output:
1
+42 42
+17.23 17
+Hello, world!
+1 2 3 4 5 
+
+string: "Hello, world!"
+number: {"floating-point":17.23,"integer":42}
+null: null
+boolean: true
+array: [1,2,3,4,5]
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/operator__ValueType.cpp -o operator__ValueType 
.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_ada8e01109a60088e4db2a670d4903b54.html b/classnlohmann_1_1basic__json_ada8e01109a60088e4db2a670d4903b54.html index fe1337163..3ff2a4fef 100644 --- a/classnlohmann_1_1basic__json_ada8e01109a60088e4db2a670d4903b54.html +++ b/classnlohmann_1_1basic__json_ada8e01109a60088e4db2a670d4903b54.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -276,7 +278,7 @@ template<template< typename U, typename V, typename...Args > class Obje
27  }
28 }
a class to store JSON values
Definition: json.hpp:121
-
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:1839
+
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:2007
namespace for Niels Lohmann
Definition: json.hpp:56
static basic_json array(list_init_t init=list_init_t())
explicitly create an array from an initializer list
Definition: json.hpp:1027
Output:
"third"
@@ -292,7 +294,7 @@ out of range
 
 
 
diff --git a/classnlohmann_1_1basic__json_adbd4c16c9ac641b2a4736bc2c6787d83.html b/classnlohmann_1_1basic__json_adbd4c16c9ac641b2a4736bc2c6787d83.html
index af36efc38..9f262ff0c 100644
--- a/classnlohmann_1_1basic__json_adbd4c16c9ac641b2a4736bc2c6787d83.html
+++ b/classnlohmann_1_1basic__json_adbd4c16c9ac641b2a4736bc2c6787d83.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_add77b50f69debb20e98d5a8c6c11c90c.html b/classnlohmann_1_1basic__json_add77b50f69debb20e98d5a8c6c11c90c.html
index 027867070..d204929e7 100644
--- a/classnlohmann_1_1basic__json_add77b50f69debb20e98d5a8c6c11c90c.html
+++ b/classnlohmann_1_1basic__json_add77b50f69debb20e98d5a8c6c11c90c.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -267,7 +269,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
15  std::cout << array_1 << '\n';
16  std::cout << array_5 << '\n';
17 }
-
basic_json<> json
default JSON class
Definition: json.hpp:6189
+
basic_json<> json
default JSON class
Definition: json.hpp:6357
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
[]
@@ -283,7 +285,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_ae2980ed978451f844e6e9a0890b637a6.html b/classnlohmann_1_1basic__json_ae2980ed978451f844e6e9a0890b637a6.html
index e3c0478a8..6a5fde0cf 100644
--- a/classnlohmann_1_1basic__json_ae2980ed978451f844e6e9a0890b637a6.html
+++ b/classnlohmann_1_1basic__json_ae2980ed978451f844e6e9a0890b637a6.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -267,7 +269,7 @@ false
 
 
 
diff --git a/classnlohmann_1_1basic__json_ae42d32c34c8014b1bf677fdb7baa5401.html b/classnlohmann_1_1basic__json_ae42d32c34c8014b1bf677fdb7baa5401.html
index 1cc585e13..ba53b093f 100644
--- a/classnlohmann_1_1basic__json_ae42d32c34c8014b1bf677fdb7baa5401.html
+++ b/classnlohmann_1_1basic__json_ae42d32c34c8014b1bf677fdb7baa5401.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -282,7 +284,7 @@ template<class CompatibleStringType , typename std::enable_if< std::is_con
 
 
 
diff --git a/classnlohmann_1_1basic__json_ae50f22a1c646b8627e88f1313cceffd4.html b/classnlohmann_1_1basic__json_ae50f22a1c646b8627e88f1313cceffd4.html
new file mode 100644
index 000000000..95b5a2711
--- /dev/null
+++ b/classnlohmann_1_1basic__json_ae50f22a1c646b8627e88f1313cceffd4.html
@@ -0,0 +1,292 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::get
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename PointerType , typename std::enable_if< std::is_pointer< PointerType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
PointerType nlohmann::basic_json::get ()
+
+inlinenoexcept
+
+

Explicit pointer access to the internally stored JSON value. No copies are made.

+
Warning
Writing data to the pointee of the result yields an undefined state.
+
Template Parameters
+ + +
PointerTypepointer type; must be a pointer to array_t, object_t, string_t, boolean_t, number_integer_t, or number_float_t.
+
+
+
Returns
pointer to the internally stored JSON value if the requested pointer type PointerType fits to the JSON value; nullptr otherwise
+
Complexity
Constant.
+
Example
The example below shows how pointers to internal values of a JSON value can be requested. Note that no type conversions are made and a nullptr is returned if the value and the requested pointer type does not match.
1 #include <json.hpp>
+
2 
+
3 using namespace nlohmann;
+
4 
+
5 int main()
+
6 {
+
7  // create a JSON boolean
+
8  json value = 17;
+
9 
+
10  // explicitly getting pointers
+
11  auto p1 = value.get<const json::number_integer_t*>();
+
12  auto p2 = value.get<json::number_integer_t*>();
+
13  auto p3 = value.get<json::number_integer_t* const>();
+
14  auto p4 = value.get<const json::number_integer_t* const>();
+
15  auto p5 = value.get<json::number_float_t*>();
+
16 
+
17  // print the pointees
+
18  std::cout << *p1 << ' ' << *p2 << ' ' << *p3 << ' ' << *p4 << '\n';
+
19  std::cout << std::boolalpha << (p5 == nullptr) << '\n';
+
20 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
ValueType get() const
get a value (explicit)
Definition: json.hpp:1866
+
NumberIntegerType number_integer_t
a type for a number (integer)
Definition: json.hpp:195
+
NumberFloatType number_float_t
a type for a number (floating-point)
Definition: json.hpp:197
+
Output:
17 17 17 17
+true
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/get__PointerType.cpp -o get__PointerType 
.
+
See also
get_ptr() for explicit pointer-member access
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_ae5dc3be56fdd8244973c3e3790769ad0.html b/classnlohmann_1_1basic__json_ae5dc3be56fdd8244973c3e3790769ad0.html index fb232efbf..a3aa43bec 100644 --- a/classnlohmann_1_1basic__json_ae5dc3be56fdd8244973c3e3790769ad0.html +++ b/classnlohmann_1_1basic__json_ae5dc3be56fdd8244973c3e3790769ad0.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -257,9 +259,9 @@ Illustration from cppreference.com
14  std::cout << *it << '\n';
15 }
a class to store JSON values
Definition: json.hpp:121
-
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4717
+
a const reverse random access iterator for the basic_json class
Definition: json.hpp:4885
namespace for Niels Lohmann
Definition: json.hpp:56
-
const_reverse_iterator crbegin() const noexcept
returns a const reverse iterator to the last element
Definition: json.hpp:2543
+
const_reverse_iterator crbegin() const noexcept
returns a const reverse iterator to the last element
Definition: json.hpp:2711
Output:
5
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/crbegin.cpp -o crbegin 
. @@ -271,7 +273,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_ae928414b2805cf6ef56b4e4f8d235416.html b/classnlohmann_1_1basic__json_ae928414b2805cf6ef56b4e4f8d235416.html index e59bc4fdf..55905dc21 100644 --- a/classnlohmann_1_1basic__json_ae928414b2805cf6ef56b4e4f8d235416.html +++ b/classnlohmann_1_1basic__json_ae928414b2805cf6ef56b4e4f8d235416.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -228,7 +230,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_ae960d2d6bc7b94fe39cc5e9f106edfa9.html b/classnlohmann_1_1basic__json_ae960d2d6bc7b94fe39cc5e9f106edfa9.html index 2f8fb96b9..11b58d27b 100644 --- a/classnlohmann_1_1basic__json_ae960d2d6bc7b94fe39cc5e9f106edfa9.html +++ b/classnlohmann_1_1basic__json_ae960d2d6bc7b94fe39cc5e9f106edfa9.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -259,7 +261,7 @@ template<template< typename U, typename V, typename...Args > class Obje
11  std::cout << array.at(2) << '\n';
12 }
a class to store JSON values
Definition: json.hpp:121
-
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:1839
+
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:2007
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
"third"
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/operatorarray__size_type_const.cpp -o operatorarray__size_type_const 
. @@ -272,7 +274,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html b/classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html index 33670c11e..e8923a572 100644 --- a/classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html +++ b/classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -257,7 +259,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_aeda4ec7473c17fae51e6d1eba0faf720.html b/classnlohmann_1_1basic__json_aeda4ec7473c17fae51e6d1eba0faf720.html index 100e30f1c..ad5115ae7 100644 --- a/classnlohmann_1_1basic__json_aeda4ec7473c17fae51e6d1eba0faf720.html +++ b/classnlohmann_1_1basic__json_aeda4ec7473c17fae51e6d1eba0faf720.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_af2730bc8ffa6b28916875c13ee7b83f5.html b/classnlohmann_1_1basic__json_af2730bc8ffa6b28916875c13ee7b83f5.html index a95fac307..10ab8c567 100644 --- a/classnlohmann_1_1basic__json_af2730bc8ffa6b28916875c13ee7b83f5.html +++ b/classnlohmann_1_1basic__json_af2730bc8ffa6b28916875c13ee7b83f5.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -297,12 +299,12 @@ template<template< typename U, typename V, typename...Args > class Obje
45  json j_filtered = json::parse(text, cb);
46  std::cout << std::setw(4) << j_filtered << '\n';
47 }
-
basic_json<> json
default JSON class
Definition: json.hpp:6189
+
basic_json<> json
default JSON class
Definition: json.hpp:6357
a class to store JSON values
Definition: json.hpp:121
std::function< bool(int depth, parse_event_t event, basic_json &parsed)> parser_callback_t
per-element parser callback type
Definition: json.hpp:409
namespace for Niels Lohmann
Definition: json.hpp:56
the parser read a key of a value in an object
-
static basic_json parse(const string_t &s, parser_callback_t cb=nullptr)
deserialize from string
Definition: json.hpp:3297
+
static basic_json parse(const string_t &s, parser_callback_t cb=nullptr)
deserialize from string
Definition: json.hpp:3465
parse_event_t
JSON callback events.
Definition: json.hpp:345
Output:
{
     "Image": {
@@ -349,7 +351,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_af3abeeb0e9676de8bc2d6aa6f6c0d6c6.html b/classnlohmann_1_1basic__json_af3abeeb0e9676de8bc2d6aa6f6c0d6c6.html
index 109e6ea22..2b70b0376 100644
--- a/classnlohmann_1_1basic__json_af3abeeb0e9676de8bc2d6aa6f6c0d6c6.html
+++ b/classnlohmann_1_1basic__json_af3abeeb0e9676de8bc2d6aa6f6c0d6c6.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -274,7 +276,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_af4261341695729a8e657b94772f95516.html b/classnlohmann_1_1basic__json_af4261341695729a8e657b94772f95516.html
index 1424050f3..d91db29b8 100644
--- a/classnlohmann_1_1basic__json_af4261341695729a8e657b94772f95516.html
+++ b/classnlohmann_1_1basic__json_af4261341695729a8e657b94772f95516.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -257,9 +259,9 @@ Illustration from cppreference.com
 
14  std::cout << *it << '\n';
15 }
a class to store JSON values
Definition: json.hpp:121
-
a random access iterator for the basic_json class
Definition: json.hpp:3684
+
a random access iterator for the basic_json class
Definition: json.hpp:3852
namespace for Niels Lohmann
Definition: json.hpp:56
-
iterator begin() noexcept
returns an iterator to the first element
Definition: json.hpp:2360
+
iterator begin() noexcept
returns an iterator to the first element
Definition: json.hpp:2528
Output:
1
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/begin.cpp -o begin 
. @@ -271,7 +273,7 @@ Illustration from cppreference.com diff --git a/classnlohmann_1_1basic__json_af49c37bbda87f36170c67f960db3781a.html b/classnlohmann_1_1basic__json_af49c37bbda87f36170c67f960db3781a.html index 76b193358..ee78fe5fe 100644 --- a/classnlohmann_1_1basic__json_af49c37bbda87f36170c67f960db3781a.html +++ b/classnlohmann_1_1basic__json_af49c37bbda87f36170c67f960db3781a.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -286,7 +288,7 @@ template<template< typename U, typename V, typename...Args > class Obje
object (unordered set of name/value pairs)
namespace for Niels Lohmann
Definition: json.hpp:56
array (ordered collection of values)
-
size_type size() const noexcept
returns the number of elements
Definition: json.hpp:2666
+
size_type size() const noexcept
returns the number of elements
Definition: json.hpp:2834
Output:
0
 1
 1
@@ -306,7 +308,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
 
 
diff --git a/classnlohmann_1_1basic__json_af6b6050ccd906dddf7c9f47fe3ad62a5.html b/classnlohmann_1_1basic__json_af6b6050ccd906dddf7c9f47fe3ad62a5.html
index 09523e4ec..5867957a9 100644
--- a/classnlohmann_1_1basic__json_af6b6050ccd906dddf7c9f47fe3ad62a5.html
+++ b/classnlohmann_1_1basic__json_af6b6050ccd906dddf7c9f47fe3ad62a5.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -270,7 +272,7 @@ template<template< typename U, typename V, typename...Args > class Obje
 
21  }
22 }
a class to store JSON values
Definition: json.hpp:121
-
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:1839
+
reference at(size_type idx)
access specified array element with bounds checking
Definition: json.hpp:2007
namespace for Niels Lohmann
Definition: json.hpp:56
Output:
"third"
 out of range
@@ -284,7 +286,7 @@ out of range
 
 
 
diff --git a/classnlohmann_1_1basic__json_af70222eb312ca0a44cd7d793b1516e2e.html b/classnlohmann_1_1basic__json_af70222eb312ca0a44cd7d793b1516e2e.html
index 89fe7e684..258a85859 100644
--- a/classnlohmann_1_1basic__json_af70222eb312ca0a44cd7d793b1516e2e.html
+++ b/classnlohmann_1_1basic__json_af70222eb312ca0a44cd7d793b1516e2e.html
@@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           find
           front
           front
-          get
+          get
+          get
           get_allocator
+          get_ptr
           is_array
           is_boolean
           is_discarded
@@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
           number_integer_t
           object
           object_t
-          operator T
           operator value_t
+          operator ValueType
           operator!=
           operator+=
           operator+=
@@ -278,7 +280,7 @@ false
 
 
 
diff --git a/classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html b/classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html
new file mode 100644
index 000000000..15c7ddab4
--- /dev/null
+++ b/classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+JSON for Modern C++: nlohmann::basic_json::operator ValueType
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
JSON for Modern C++ +  3.0 +
+
+
+ + + + + +
+
+ + +
+ +
+ + +
+
+ + + + + +
+ + + +
+
+
+template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
+
+template<typename ValueType , typename std::enable_if< not std::is_pointer< ValueType >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
nlohmann::basic_json::operator ValueType () const
+
+inline
+
+

Implict type conversion between the JSON value and a compatible value. The call is realized by calling get() const.

+
Template Parameters
+ + +
ValueTypenon-pointer type compatible to the JSON value, for instance int for JSON integer numbers, bool for JSON booleans, or std::vector types for JSON arrays
+
+
+
Returns
copy of the JSON value, converted to type ValueType
+
Exceptions
+ + +
std::domain_errorin case passed type ValueType is incompatible to JSON, thrown by get() const
+
+
+
Complexity
Linear in the size of the JSON value.
+
Example
The example below shows serveral conversions from JSON values to other types. There a few things to note: (1) Floating-point numbers can be converted to integers, (2) A JSON array can be converted to a standard std::vector<short>, (3) A JSON object can be converted to C++ assiciative containers such as std::unordered_map<std::string, json>.
1 #include <json.hpp>
+
2 #include <unordered_map>
+
3 
+
4 using namespace nlohmann;
+
5 
+
6 int main()
+
7 {
+
8  // create a JSON value with different types
+
9  json json_types =
+
10  {
+
11  {"boolean", true},
+
12  {
+
13  "number", {
+
14  {"integer", 42},
+
15  {"floating-point", 17.23}
+
16  }
+
17  },
+
18  {"string", "Hello, world!"},
+
19  {"array", {1, 2, 3, 4, 5}},
+
20  {"null", nullptr}
+
21  };
+
22 
+
23  // use implicit conversions
+
24  bool v1 = json_types["boolean"];
+
25  int v2 = json_types["number"]["integer"];
+
26  short v3 = json_types["number"]["integer"];
+
27  float v4 = json_types["number"]["floating-point"];
+
28  int v5 = json_types["number"]["floating-point"];
+
29  std::string v6 = json_types["string"];
+
30  std::vector<short> v7 = json_types["array"];
+
31  std::unordered_map<std::string, json> v8 = json_types;
+
32 
+
33  // print the conversion results
+
34  std::cout << v1 << '\n';
+
35  std::cout << v2 << ' ' << v3 << '\n';
+
36  std::cout << v4 << ' ' << v5 << '\n';
+
37  std::cout << v6 << '\n';
+
38 
+
39  for (auto i : v7)
+
40  {
+
41  std::cout << i << ' ';
+
42  }
+
43  std::cout << "\n\n";
+
44 
+
45  for (auto i : v8)
+
46  {
+
47  std::cout << i.first << ": " << i.second << '\n';
+
48  }
+
49 }
+
a class to store JSON values
Definition: json.hpp:121
+
namespace for Niels Lohmann
Definition: json.hpp:56
+
Output:
1
+42 42
+17.23 17
+Hello, world!
+1 2 3 4 5 
+
+string: "Hello, world!"
+number: {"floating-point":17.23,"integer":42}
+null: null
+boolean: true
+array: [1,2,3,4,5]
+
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/operator__ValueType.cpp -o operator__ValueType 
.
+ +
+
+
+
+ + + + diff --git a/classnlohmann_1_1basic__json_af74581d177dafc38df5a126ccd358999.html b/classnlohmann_1_1basic__json_af74581d177dafc38df5a126ccd358999.html index c02ee2c3e..efa931d37 100644 --- a/classnlohmann_1_1basic__json_af74581d177dafc38df5a126ccd358999.html +++ b/classnlohmann_1_1basic__json_af74581d177dafc38df5a126ccd358999.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -240,7 +242,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_af93e556bf708cb81b22ce223af1aa727.html b/classnlohmann_1_1basic__json_af93e556bf708cb81b22ce223af1aa727.html index ee289091d..626d046fe 100644 --- a/classnlohmann_1_1basic__json_af93e556bf708cb81b22ce223af1aa727.html +++ b/classnlohmann_1_1basic__json_af93e556bf708cb81b22ce223af1aa727.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -275,7 +277,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/classnlohmann_1_1basic__json_afb19d4669daf3c4347763f043471b835.html b/classnlohmann_1_1basic__json_afb19d4669daf3c4347763f043471b835.html index 93681416c..58a4e421d 100644 --- a/classnlohmann_1_1basic__json_afb19d4669daf3c4347763f043471b835.html +++ b/classnlohmann_1_1basic__json_afb19d4669daf3c4347763f043471b835.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -258,7 +260,7 @@ template<template< typename U, typename V, typename...Args > class Obje
17 }
a class to store JSON values
Definition: json.hpp:121
namespace for Niels Lohmann
Definition: json.hpp:56
-
void swap(reference other) noexcept(std::is_nothrow_move_constructible< value_t >::value andstd::is_nothrow_move_assignable< value_t >::value andstd::is_nothrow_move_constructible< json_value >::value andstd::is_nothrow_move_assignable< json_value >::value)
exchanges the values
Definition: json.hpp:2933
+
void swap(reference other) noexcept(std::is_nothrow_move_constructible< value_t >::value andstd::is_nothrow_move_assignable< value_t >::value andstd::is_nothrow_move_constructible< json_value >::value andstd::is_nothrow_move_assignable< json_value >::value)
exchanges the values
Definition: json.hpp:3101
Output:
j1 = {"e":2.71828182845905,"pi":3.14159265358979}
 j2 = [1,2,3,4,5]
 
The example code above can be translated with
g++ -std=c++11 -Isrc doc/examples/swap__reference.cpp -o swap__reference 
. @@ -271,7 +273,7 @@ j2 = [1,2,3,4,5] diff --git a/classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html b/classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html index adbe3f8ee..e34fdfcae 100644 --- a/classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html +++ b/classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html @@ -140,8 +140,10 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); find front front - get + get + get get_allocator + get_ptr is_array is_boolean is_discarded @@ -157,8 +159,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); number_integer_t object object_t - operator T operator value_t + operator ValueType operator!= operator+= operator+= @@ -283,7 +285,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/dir_68267d1309a1af8e8297ef4c3efbcdba.html index 0cc76c2e9..59c9d0f99 100644 --- a/dir_68267d1309a1af8e8297ef4c3efbcdba.html +++ b/dir_68267d1309a1af8e8297ef4c3efbcdba.html @@ -93,7 +93,7 @@ Files diff --git a/functions.html b/functions.html index c3454a3c1..31dd697cf 100644 --- a/functions.html +++ b/functions.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_a.html b/functions_a.html index 231ce2e66..3cf2b7335 100644 --- a/functions_a.html +++ b/functions_a.html @@ -139,7 +139,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_b.html b/functions_b.html index 4291af90e..a74e61456 100644 --- a/functions_b.html +++ b/functions_b.html @@ -143,7 +143,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_c.html b/functions_c.html index 296145610..bacda908e 100644 --- a/functions_c.html +++ b/functions_c.html @@ -156,7 +156,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_d.html b/functions_d.html index c2a9f23a3..895aaa98e 100644 --- a/functions_d.html +++ b/functions_d.html @@ -134,7 +134,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_e.html b/functions_e.html index da6dcb96c..d55388d21 100644 --- a/functions_e.html +++ b/functions_e.html @@ -135,7 +135,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_enum.html b/functions_enum.html index 1def6bbcc..a9ab29dbb 100644 --- a/functions_enum.html +++ b/functions_enum.html @@ -105,7 +105,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_f.html b/functions_f.html index c67bb20ed..5be670754 100644 --- a/functions_f.html +++ b/functions_f.html @@ -132,7 +132,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_func.html b/functions_func.html index 8e5accc11..00b2a72ad 100644 --- a/functions_func.html +++ b/functions_func.html @@ -201,11 +201,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

- g -

@@ -271,12 +274,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • object() : nlohmann::basic_json
  • -
  • operator T() -: nlohmann::basic_json -
  • operator value_t() : nlohmann::basic_json
  • +
  • operator ValueType() +: nlohmann::basic_json +
  • operator!=() : nlohmann::basic_json::const_iterator , nlohmann::basic_json::iterator @@ -408,7 +411,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_g.html b/functions_g.html index 545eab810..b523e6881 100644 --- a/functions_g.html +++ b/functions_g.html @@ -123,16 +123,19 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - g -

    diff --git a/functions_i.html b/functions_i.html index 1b42b06ae..4ef7d6c4c 100644 --- a/functions_i.html +++ b/functions_i.html @@ -160,7 +160,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_j.html b/functions_j.html index 07342d7b1..16eb0b393 100644 --- a/functions_j.html +++ b/functions_j.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_k.html b/functions_k.html index 2118d54b9..0e333a2d1 100644 --- a/functions_k.html +++ b/functions_k.html @@ -132,7 +132,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_l.html b/functions_l.html index a0b57f508..784ec9492 100644 --- a/functions_l.html +++ b/functions_l.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_m.html b/functions_m.html index 70d88925a..d34a69952 100644 --- a/functions_m.html +++ b/functions_m.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_n.html b/functions_n.html index dfb1c2732..008319b32 100644 --- a/functions_n.html +++ b/functions_n.html @@ -138,7 +138,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_o.html b/functions_o.html index dee28d4a5..8584db401 100644 --- a/functions_o.html +++ b/functions_o.html @@ -129,12 +129,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • object_t : nlohmann::basic_json
  • -
  • operator T() -: nlohmann::basic_json -
  • operator value_t() : nlohmann::basic_json
  • +
  • operator ValueType() +: nlohmann::basic_json +
  • operator!=() : nlohmann::basic_json::const_iterator , nlohmann::basic_json::iterator @@ -221,7 +221,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_p.html b/functions_p.html index 02ca5e363..35d282cb1 100644 --- a/functions_p.html +++ b/functions_p.html @@ -143,7 +143,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_r.html b/functions_r.html index 438fc5d0f..f314237d9 100644 --- a/functions_r.html +++ b/functions_r.html @@ -140,7 +140,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_rela.html b/functions_rela.html index d6d7e2ad1..4ae887561 100644 --- a/functions_rela.html +++ b/functions_rela.html @@ -127,7 +127,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_s.html b/functions_s.html index cead0de8b..39e69cb10 100644 --- a/functions_s.html +++ b/functions_s.html @@ -141,7 +141,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_t.html b/functions_t.html index 5b9719232..3b4d3c429 100644 --- a/functions_t.html +++ b/functions_t.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_type.html b/functions_type.html index 52abc9db1..5356b45f8 100644 --- a/functions_type.html +++ b/functions_type.html @@ -162,7 +162,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_v.html b/functions_v.html index fa8920ca2..4e009c868 100644 --- a/functions_v.html +++ b/functions_v.html @@ -140,7 +140,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_vars.html b/functions_vars.html index a559bb892..856a9c367 100644 --- a/functions_vars.html +++ b/functions_vars.html @@ -117,7 +117,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/functions_~.html b/functions_~.html index cf0f54989..1c69648ef 100644 --- a/functions_~.html +++ b/functions_~.html @@ -129,7 +129,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/graph_legend.html b/graph_legend.html index 6b2c96344..d7e64b801 100644 --- a/graph_legend.html +++ b/graph_legend.html @@ -143,7 +143,7 @@ A yellow dashed arrow denotes a relation between a template instance and the tem diff --git a/hierarchy.html b/hierarchy.html index 13810ecfb..d632a96e5 100644 --- a/hierarchy.html +++ b/hierarchy.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/index.html b/index.html index f2eafaa38..39e177a39 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers.html b/namespacemembers.html index b5cd73d20..5f53dd9a7 100644 --- a/namespacemembers.html +++ b/namespacemembers.html @@ -95,7 +95,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacemembers_type.html b/namespacemembers_type.html index a3cc92599..5d29c3b20 100644 --- a/namespacemembers_type.html +++ b/namespacemembers_type.html @@ -95,7 +95,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/namespacenlohmann.html b/namespacenlohmann.html index 86c5c6eb6..886b8a098 100644 --- a/namespacenlohmann.html +++ b/namespacenlohmann.html @@ -109,7 +109,7 @@ Typedefs diff --git a/namespacenlohmann_a2bfd99e845a2e5cd90aeaf1b1431f474.html b/namespacenlohmann_a2bfd99e845a2e5cd90aeaf1b1431f474.html index 0d3742778..85a765e2a 100644 --- a/namespacenlohmann_a2bfd99e845a2e5cd90aeaf1b1431f474.html +++ b/namespacenlohmann_a2bfd99e845a2e5cd90aeaf1b1431f474.html @@ -109,7 +109,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/pages.html b/pages.html index 495c44063..69b239a5a 100644 --- a/pages.html +++ b/pages.html @@ -88,7 +88,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/search/all_7.js b/search/all_7.js index 62d0c4bef..d75c4a412 100644 --- a/search/all_7.js +++ b/search/all_7.js @@ -1,5 +1,6 @@ var searchData= [ - ['get',['get',['../classnlohmann_1_1basic__json_a70be72c27e1ca0af77335585a8cec1ed.html#a70be72c27e1ca0af77335585a8cec1ed',1,'nlohmann::basic_json']]], - ['get_5fallocator',['get_allocator',['../classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html#ad2c4513cef5d8db760c4b2d871eea42c',1,'nlohmann::basic_json']]] + ['get',['get',['../classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html#a5f0aad50ed7e8aec3128fe018c18b3fe',1,'nlohmann::basic_json::get() const '],['../classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html#a5a2d66582b75e0301d37886137c6953c',1,'nlohmann::basic_json::get() const noexcept']]], + ['get_5fallocator',['get_allocator',['../classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html#ad2c4513cef5d8db760c4b2d871eea42c',1,'nlohmann::basic_json']]], + ['get_5fptr',['get_ptr',['../classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html#a2efda2b6d931ee72d9757418042e74e1',1,'nlohmann::basic_json']]] ]; diff --git a/search/all_f.js b/search/all_f.js index f67250474..789ecc044 100644 --- a/search/all_f.js +++ b/search/all_f.js @@ -4,8 +4,8 @@ var searchData= ['object_5fend',['object_end',['../classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html#aea1c863b719b4ca5b77188c171bbfafeaf63e2a2468a37aa4f394fcc3bcb8249c',1,'nlohmann::basic_json']]], ['object_5fstart',['object_start',['../classnlohmann_1_1basic__json_aea1c863b719b4ca5b77188c171bbfafe.html#aea1c863b719b4ca5b77188c171bbfafeae73f17027cb0acbb537f29d0a6944b26',1,'nlohmann::basic_json']]], ['object_5ft',['object_t',['../classnlohmann_1_1basic__json_a63691315292df8e1522b00d37ebb1ffc.html#a63691315292df8e1522b00d37ebb1ffc',1,'nlohmann::basic_json']]], - ['operator_20t',['operator T',['../classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html#a9a91e05cbc516623fa61e253f920e42e',1,'nlohmann::basic_json']]], ['operator_20value_5ft',['operator value_t',['../classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html#a31af4b416e9ccb373291a645da7f83d7',1,'nlohmann::basic_json']]], + ['operator_20valuetype',['operator ValueType',['../classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html#af709c079de0ac3507143ea2c60699bd0',1,'nlohmann::basic_json']]], ['operator_21_3d',['operator!=',['../classnlohmann_1_1basic__json_a6e2e21da48f5d9471716cd868a068327.html#a6e2e21da48f5d9471716cd868a068327',1,'nlohmann::basic_json::operator!=()'],['../classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html#a903462b9290e1bde30716f9e14d9d3df',1,'nlohmann::basic_json::iterator::operator!=()'],['../classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html#ab9d31bf0d0b4d7310c858a04ce84a52f',1,'nlohmann::basic_json::const_iterator::operator!=()']]], ['operator_28_29',['operator()',['../structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html#afd03f6ad53db22868ca4163a8200b2f9',1,'std::hash< nlohmann::json >']]], ['operator_2a',['operator*',['../classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html#a33277dbf06ac5c1e7102e26f6b5e2c00',1,'nlohmann::basic_json::iterator::operator*()'],['../classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html#a4632d8307fc315f21e2ecc9ba5aa6346',1,'nlohmann::basic_json::const_iterator::operator*()']]], diff --git a/search/functions_6.js b/search/functions_6.js index 62d0c4bef..d75c4a412 100644 --- a/search/functions_6.js +++ b/search/functions_6.js @@ -1,5 +1,6 @@ var searchData= [ - ['get',['get',['../classnlohmann_1_1basic__json_a70be72c27e1ca0af77335585a8cec1ed.html#a70be72c27e1ca0af77335585a8cec1ed',1,'nlohmann::basic_json']]], - ['get_5fallocator',['get_allocator',['../classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html#ad2c4513cef5d8db760c4b2d871eea42c',1,'nlohmann::basic_json']]] + ['get',['get',['../classnlohmann_1_1basic__json_a5f0aad50ed7e8aec3128fe018c18b3fe.html#a5f0aad50ed7e8aec3128fe018c18b3fe',1,'nlohmann::basic_json::get() const '],['../classnlohmann_1_1basic__json_a5a2d66582b75e0301d37886137c6953c.html#a5a2d66582b75e0301d37886137c6953c',1,'nlohmann::basic_json::get() const noexcept']]], + ['get_5fallocator',['get_allocator',['../classnlohmann_1_1basic__json_ad2c4513cef5d8db760c4b2d871eea42c.html#ad2c4513cef5d8db760c4b2d871eea42c',1,'nlohmann::basic_json']]], + ['get_5fptr',['get_ptr',['../classnlohmann_1_1basic__json_a2efda2b6d931ee72d9757418042e74e1.html#a2efda2b6d931ee72d9757418042e74e1',1,'nlohmann::basic_json']]] ]; diff --git a/search/functions_b.js b/search/functions_b.js index c82153a8b..c22cef661 100644 --- a/search/functions_b.js +++ b/search/functions_b.js @@ -1,8 +1,8 @@ var searchData= [ ['object',['object',['../classnlohmann_1_1basic__json_afb9664e6f30038e691f2e864e7f6a740.html#afb9664e6f30038e691f2e864e7f6a740',1,'nlohmann::basic_json']]], - ['operator_20t',['operator T',['../classnlohmann_1_1basic__json_a9a91e05cbc516623fa61e253f920e42e.html#a9a91e05cbc516623fa61e253f920e42e',1,'nlohmann::basic_json']]], ['operator_20value_5ft',['operator value_t',['../classnlohmann_1_1basic__json_a31af4b416e9ccb373291a645da7f83d7.html#a31af4b416e9ccb373291a645da7f83d7',1,'nlohmann::basic_json']]], + ['operator_20valuetype',['operator ValueType',['../classnlohmann_1_1basic__json_af709c079de0ac3507143ea2c60699bd0.html#af709c079de0ac3507143ea2c60699bd0',1,'nlohmann::basic_json']]], ['operator_21_3d',['operator!=',['../classnlohmann_1_1basic__json_1_1iterator_a903462b9290e1bde30716f9e14d9d3df.html#a903462b9290e1bde30716f9e14d9d3df',1,'nlohmann::basic_json::iterator::operator!=()'],['../classnlohmann_1_1basic__json_1_1const__iterator_ab9d31bf0d0b4d7310c858a04ce84a52f.html#ab9d31bf0d0b4d7310c858a04ce84a52f',1,'nlohmann::basic_json::const_iterator::operator!=()']]], ['operator_28_29',['operator()',['../structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html#afd03f6ad53db22868ca4163a8200b2f9',1,'std::hash< nlohmann::json >']]], ['operator_2a',['operator*',['../classnlohmann_1_1basic__json_1_1iterator_a33277dbf06ac5c1e7102e26f6b5e2c00.html#a33277dbf06ac5c1e7102e26f6b5e2c00',1,'nlohmann::basic_json::iterator::operator*()'],['../classnlohmann_1_1basic__json_1_1const__iterator_a4632d8307fc315f21e2ecc9ba5aa6346.html#a4632d8307fc315f21e2ecc9ba5aa6346',1,'nlohmann::basic_json::const_iterator::operator*()']]], diff --git a/structstd_1_1hash_3_01nlohmann_1_1json_01_4-members.html b/structstd_1_1hash_3_01nlohmann_1_1json_01_4-members.html index 800d77040..7b57000a7 100644 --- a/structstd_1_1hash_3_01nlohmann_1_1json_01_4-members.html +++ b/structstd_1_1hash_3_01nlohmann_1_1json_01_4-members.html @@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/structstd_1_1hash_3_01nlohmann_1_1json_01_4.html b/structstd_1_1hash_3_01nlohmann_1_1json_01_4.html index fb582fc12..856394ed4 100644 --- a/structstd_1_1hash_3_01nlohmann_1_1json_01_4.html +++ b/structstd_1_1hash_3_01nlohmann_1_1json_01_4.html @@ -110,7 +110,7 @@ Public Member Functions diff --git a/structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html b/structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html index f4d194054..7a2aa96d4 100644 --- a/structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html +++ b/structstd_1_1hash_3_01nlohmann_1_1json_01_4_afd03f6ad53db22868ca4163a8200b2f9.html @@ -120,7 +120,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/todo.html b/todo.html index ce62a9950..fc53e518c 100644 --- a/todo.html +++ b/todo.html @@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/unionnlohmann_1_1basic__json_1_1json__value-members.html b/unionnlohmann_1_1basic__json_1_1json__value-members.html index 88f876b83..58f3186d2 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value-members.html +++ b/unionnlohmann_1_1basic__json_1_1json__value-members.html @@ -112,7 +112,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/unionnlohmann_1_1basic__json_1_1json__value.html b/unionnlohmann_1_1basic__json_1_1json__value.html index 720706daa..3deb2f6d8 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value.html +++ b/unionnlohmann_1_1basic__json_1_1json__value.html @@ -153,7 +153,7 @@ Public Attributes diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a10dd4f2f978cdcbb3be850dc8f3351d6.html b/unionnlohmann_1_1basic__json_1_1json__value_a10dd4f2f978cdcbb3be850dc8f3351d6.html index 6b8ad62b4..5d64f2d12 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a10dd4f2f978cdcbb3be850dc8f3351d6.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a10dd4f2f978cdcbb3be850dc8f3351d6.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a231c96961c674bebfb14d3f50bb57703.html b/unionnlohmann_1_1basic__json_1_1json__value_a231c96961c674bebfb14d3f50bb57703.html index ba089549b..5786a8a48 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a231c96961c674bebfb14d3f50bb57703.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a231c96961c674bebfb14d3f50bb57703.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a329c53042b9ba5c73512da4c780f2f2c.html b/unionnlohmann_1_1basic__json_1_1json__value_a329c53042b9ba5c73512da4c780f2f2c.html index 192f43bdc..1f8cbd9eb 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a329c53042b9ba5c73512da4c780f2f2c.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a329c53042b9ba5c73512da4c780f2f2c.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a3a2fa91f7daaca8a07963755eea1580d.html b/unionnlohmann_1_1basic__json_1_1json__value_a3a2fa91f7daaca8a07963755eea1580d.html index f81f4673d..c43fd1ba9 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a3a2fa91f7daaca8a07963755eea1580d.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a3a2fa91f7daaca8a07963755eea1580d.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a4351a2387d3eef1c1ecea5c9c8efb92d.html b/unionnlohmann_1_1basic__json_1_1json__value_a4351a2387d3eef1c1ecea5c9c8efb92d.html index a3446cd91..2a40f2b21 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a4351a2387d3eef1c1ecea5c9c8efb92d.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a4351a2387d3eef1c1ecea5c9c8efb92d.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a4ff9894ccb1eca08ba1c49eec70ee2f5.html b/unionnlohmann_1_1basic__json_1_1json__value_a4ff9894ccb1eca08ba1c49eec70ee2f5.html index 3e9d8df1a..b81dc1903 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a4ff9894ccb1eca08ba1c49eec70ee2f5.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a4ff9894ccb1eca08ba1c49eec70ee2f5.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a592a4d5dfca10aa2bf033641b9ee050f.html b/unionnlohmann_1_1basic__json_1_1json__value_a592a4d5dfca10aa2bf033641b9ee050f.html index 52241f54f..0ba3b4643 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a592a4d5dfca10aa2bf033641b9ee050f.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a592a4d5dfca10aa2bf033641b9ee050f.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a874e1bed30eee7847d34d8f410114cbc.html b/unionnlohmann_1_1basic__json_1_1json__value_a874e1bed30eee7847d34d8f410114cbc.html index 9d14ff8a3..89a8eaf87 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a874e1bed30eee7847d34d8f410114cbc.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a874e1bed30eee7847d34d8f410114cbc.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a9b0c0f7dc2ddb9fa9101a287b233a8b2.html b/unionnlohmann_1_1basic__json_1_1json__value_a9b0c0f7dc2ddb9fa9101a287b233a8b2.html index c1c77798d..b0187116e 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a9b0c0f7dc2ddb9fa9101a287b233a8b2.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a9b0c0f7dc2ddb9fa9101a287b233a8b2.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_a9bd260b1ff2f03572dcc84c179a6a37c.html b/unionnlohmann_1_1basic__json_1_1json__value_a9bd260b1ff2f03572dcc84c179a6a37c.html index 8100abeff..3a2b2fec6 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_a9bd260b1ff2f03572dcc84c179a6a37c.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_a9bd260b1ff2f03572dcc84c179a6a37c.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_ab2c1e8a4ef5293eb86e9a6c03fbb5610.html b/unionnlohmann_1_1basic__json_1_1json__value_ab2c1e8a4ef5293eb86e9a6c03fbb5610.html index 17733f782..4487e136a 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_ab2c1e8a4ef5293eb86e9a6c03fbb5610.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_ab2c1e8a4ef5293eb86e9a6c03fbb5610.html @@ -123,7 +123,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_ac051d54557c5cf079925b810c0e16e1e.html b/unionnlohmann_1_1basic__json_1_1json__value_ac051d54557c5cf079925b810c0e16e1e.html index 8dde84ac3..4c7cf4b2a 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_ac051d54557c5cf079925b810c0e16e1e.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_ac051d54557c5cf079925b810c0e16e1e.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_ac6fa840d0f9cefd1f064e371a369d3bf.html b/unionnlohmann_1_1basic__json_1_1json__value_ac6fa840d0f9cefd1f064e371a369d3bf.html index 29d98d367..08f136ce4 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_ac6fa840d0f9cefd1f064e371a369d3bf.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_ac6fa840d0f9cefd1f064e371a369d3bf.html @@ -134,7 +134,7 @@ template<template< typename U, typename V, typename...Args > class Obje diff --git a/unionnlohmann_1_1basic__json_1_1json__value_af432b12c2a45a123ae7404588d889af7.html b/unionnlohmann_1_1basic__json_1_1json__value_af432b12c2a45a123ae7404588d889af7.html index a7d64eca5..9c9d1d690 100644 --- a/unionnlohmann_1_1basic__json_1_1json__value_af432b12c2a45a123ae7404588d889af7.html +++ b/unionnlohmann_1_1basic__json_1_1json__value_af432b12c2a45a123ae7404588d889af7.html @@ -135,7 +135,7 @@ template<template< typename U, typename V, typename...Args > class Obje