! @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 */
| 10318 | @since version 3.6.0 |
| 10319 | */ |
| 10320 | void pop_back() |
| 10321 | { |
| 10322 | if (JSON_HEDLEY_UNLIKELY(empty())) |
| 10323 | { |
| 10324 | JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); |
| 10325 | } |
| 10326 | |
| 10327 | reference_tokens.pop_back(); |
| 10328 | } |
| 10329 | |
| 10330 | /*! |
| 10331 | @brief return last reference token |
no test coverage detected