...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Access an element via JSON Pointer.
value const& at_pointer( string_view ptr) const;
This function is used to access a (potentially nested) element of the value using a JSON Pointer string.
Linear in the sizes of ptr
and underlying array, object, or string.
Strong guarantee.
Name |
Description |
---|---|
|
JSON Pointer string. |
reference to the element identified by ptr
.
Type |
Thrown On |
---|---|
|
if an error occurs. |