MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / parent_pointer

Function parent_pointer

src/include/nlohmann/detail/json_pointer.hpp:145–155  ·  view source on GitHub ↗

@brief returns the parent of this JSON pointer @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/

Source from the content-addressed store, hash-verified

143 /// @brief returns the parent of this JSON pointer
144 /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
145 json_pointer parent_pointer() const
146 {
147 if (empty())
148 {
149 return *this;
150 }
151
152 json_pointer res = *this;
153 res.pop_back();
154 return res;
155 }
156
157 /// @brief remove last reference token
158 /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/

Callers

nothing calls this directly

Calls 1

emptyFunction · 0.70

Tested by

no test coverage detected