mirror of
https://github.com/nlohmann/json.git
synced 2026-10-29 09:05:42 +00:00
deploy: a47170346a
This commit is contained in:
1 parent
b36f8a9821
commit
11a863958e
1180 files changed
+14211
-6025
No files matched your search
@@ -89,3 +89,13 @@ non-existing, an exception is thrown.
|
||||
| access to valid array index | reference to existing value is returned | const reference to existing value is returned |
|
||||
| access to non-existing object key | `basic_json::out_of_range` exception is thrown | `basic_json::out_of_range` exception is thrown |
|
||||
| access to invalid array index | `basic_json::out_of_range` exception is thrown | `basic_json::out_of_range` exception is thrown |
|
||||
|
||||
<p class="nj-table-caption" markdown>Result of [`at`](../../api/basic_json/at.md) in each scenario, for a non-const and a const value.</p>
|
||||
|
||||
## See also
|
||||
|
||||
- [Element Access](index.md) - overview of all ways to access elements
|
||||
- [Unchecked access: operator[]](unchecked_access.md) - access without range checking
|
||||
- [Access with default value: value](default_value.md) - fall back to a default instead of throwing
|
||||
- [`at`](../../api/basic_json/at.md) - checked access by reference
|
||||
- [JSON Pointer](../json_pointer.md) - access nested values with `at` and a pointer
|
||||
Reference in new issue
Block a user