! @brief access the last element Returns a reference to the last element in the container. For a JSON container `c`, the expression `c.back()` is equivalent to @code {.cpp} auto tmp = c.end(); --tmp; return *tmp; @endcode @return In case of a structured type (array or object), a reference to the last element is returned. In case of number, string, boolean,
| 20530 | @since version 1.0.0 |
| 20531 | */ |
| 20532 | reference back() |
| 20533 | { |
| 20534 | auto tmp = end(); |
| 20535 | --tmp; |
| 20536 | return *tmp; |
| 20537 | } |
| 20538 | |
| 20539 | /*! |
| 20540 | @copydoc basic_json::back() |