MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / front

Function front

lesson6-Segmentation/json.hpp:20405–20408  ·  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

20403 @since version 1.0.0
20404 */
20405 reference front()
20406 {
20407 return *begin();
20408 }
20409
20410 /*!
20411 @copydoc basic_json::front()

Callers

nothing calls this directly

Calls 2

beginFunction · 0.85
cbeginFunction · 0.85

Tested by

no test coverage detected