! @brief remove last reference token @pre not `empty()` @liveexample{The example shows the usage of `pop_back`.,json_pointer__pop_back} @complexity Constant. @throw out_of_range.405 if JSON pointer has no parent @since version 3.6.0 */
| 11778 | @since version 3.6.0 |
| 11779 | */ |
| 11780 | void pop_back() |
| 11781 | { |
| 11782 | if (JSON_HEDLEY_UNLIKELY(empty())) |
| 11783 | { |
| 11784 | JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); |
| 11785 | } |
| 11786 | |
| 11787 | reference_tokens.pop_back(); |
| 11788 | } |
| 11789 | |
| 11790 | /*! |
| 11791 | @brief return last reference token |
no test coverage detected