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

Method to_string

lesson6-Segmentation/json.hpp:11600–11608  ·  view source on GitHub ↗

! @brief return a string representation of the JSON pointer @invariant For each JSON pointer `ptr`, it holds: @code {.cpp} ptr == json_pointer(ptr.to_string()); @endcode @return a string representation of the JSON pointer @liveexample{The example shows the result of `to_string`.,json_pointer__to_string} @since version 2.0.0 */

Source from the content-addressed store, hash-verified

11598 @since version 2.0.0
11599 */
11600 std::string to_string() const
11601 {
11602 return std::accumulate(reference_tokens.begin(), reference_tokens.end(),
11603 std::string{},
11604 [](const std::string & a, const std::string & b)
11605 {
11606 return a + "/" + escape(b);
11607 });
11608 }
11609
11610 /// @copydoc to_string()
11611 operator std::string() const

Callers

nothing calls this directly

Calls 3

escapeFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected