MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / top

Method top

3rd/json/include/nlohmann/json.hpp:8753–8763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8751 }
8752
8753 json_pointer top() const
8754 {
8755 if (JSON_UNLIKELY(empty()))
8756 {
8757 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent"));
8758 }
8759
8760 json_pointer result = *this;
8761 result.reference_tokens = {reference_tokens[0]};
8762 return result;
8763 }
8764
8765 /*!
8766 @brief create and return a reference to the pointed to value

Callers 1

patchFunction · 0.80

Calls 2

emptyFunction · 0.85
createFunction · 0.70

Tested by

no test coverage detected