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

Function front

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

! @brief access the first element Returns a reference to the first element in the container. For a JSON container `c`, the expression `c.front()` is equivalent to `*c.begin()`. @return In case of a structured type (array or object), a reference to the first element is returned. In case of number, string, boolean, or binary values, a reference to the value is returned.

Source from the content-addressed store, hash-verified

4113 @since version 1.0.0
4114 */
4115 reference front()
4116 {
4117 return *begin();
4118 }
4119
4120 /*!
4121 @copydoc basic_json::front()

Callers 1

pushMethod · 0.50

Calls 2

beginFunction · 0.70
cbeginFunction · 0.70

Tested by

no test coverage detected