! @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, or boole
| 16325 | @since version 1.0.0 |
| 16326 | */ |
| 16327 | reference back() |
| 16328 | { |
| 16329 | auto tmp = end(); |
| 16330 | --tmp; |
| 16331 | return *tmp; |
| 16332 | } |
| 16333 | |
| 16334 | /*! |
| 16335 | @copydoc basic_json::back() |