MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / back

Function back

3rd/nlohmann_json/include/nlohmann/json.hpp:4159–4164  ·  view source on GitHub ↗

! @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,

Source from the content-addressed store, hash-verified

4157 @since version 1.0.0
4158 */
4159 reference back()
4160 {
4161 auto tmp = end();
4162 --tmp;
4163 return *tmp;
4164 }
4165
4166 /*!
4167 @copydoc basic_json::back()

Callers 1

pushMethod · 0.50

Calls 2

endFunction · 0.70
cendFunction · 0.70

Tested by

no test coverage detected