• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# <small>nlohmann::json_pointer::</small>back
2
3```cpp
4const string_t& back() const;
5```
6
7Return last reference token.
8
9## Return value
10
11Last reference token.
12
13## Exceptions
14
15Throws [out_of_range.405](../../home/exceptions.md#jsonexceptionout_of_range405) if JSON pointer has no parent.
16
17## Complexity
18
19Constant.
20
21## Examples
22
23??? example
24
25    The example shows the usage of `back`.
26
27    ```cpp
28    --8<-- "examples/json_pointer__back.cpp"
29    ```
30
31    Output:
32
33    ```json
34    --8<-- "examples/json_pointer__back.output"
35    ```
36
37## Version history
38
39- Added in version 3.6.0.
40- Changed return type to `string_t` in version 3.11.0.
41