! @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,
| 21658 | @since version 1.0.0 |
| 21659 | */ |
| 21660 | reference back() |
| 21661 | { |
| 21662 | auto tmp = end(); |
| 21663 | --tmp; |
| 21664 | return *tmp; |
| 21665 | } |
| 21666 | |
| 21667 | /*! |
| 21668 | @copydoc basic_json::back() |