! @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 cast of number, string, or boole
| 3869 | @since version 1.0.0 |
| 3870 | */ |
| 3871 | reference back() |
| 3872 | { |
| 3873 | auto tmp = end(); |
| 3874 | --tmp; |
| 3875 | return *tmp; |
| 3876 | } |
| 3877 | |
| 3878 | /*! |
| 3879 | @copydoc basic_json::back() |
no test coverage detected