| 8751 | } |
| 8752 | |
| 8753 | json_pointer top() const |
| 8754 | { |
| 8755 | if (JSON_UNLIKELY(empty())) |
| 8756 | { |
| 8757 | JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); |
| 8758 | } |
| 8759 | |
| 8760 | json_pointer result = *this; |
| 8761 | result.reference_tokens = {reference_tokens[0]}; |
| 8762 | return result; |
| 8763 | } |
| 8764 | |
| 8765 | /*! |
| 8766 | @brief create and return a reference to the pointed to value |