This commit is contained in:
nlohmann committed 2026-11-18 23:40:28 +00:00
1 parent 70feeb496c
commit 8279f43a4b
471 files changed
+1737 -1335

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ If `v.contains(key)` returns `true`, then `v[key]` is not [discarded](https://js
Overload 2 never throws
Unlike [`BasicJsonType::contains(const json_pointer&)`](https://json.nlohmann.me/api/basic_json/contains/index.md), which can throw for certain malformed pointers (for instance an empty array-index reference token), overload 2 never throws: a missing key, an out-of-range or malformed array index, a `"-"` index, or a reference token used on a primitive all simply make it return `false`.
Like [`BasicJsonType::contains(const json_pointer&)`](https://json.nlohmann.me/api/basic_json/contains/index.md), overload 2 never throws: a missing key, an out-of-range or malformed array index, a `"-"` index, or a reference token used on a primitive all simply make it return `false`.
## Examples