MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / parent_pointer

Function parent_pointer

Source/external/json.hpp:13826–13836  ·  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

13824 /// @brief returns the parent of this JSON pointer
13825 /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
13826 json_pointer parent_pointer() const
13827 {
13828 if (empty())
13829 {
13830 return *this;
13831 }
13832
13833 json_pointer res = *this;
13834 res.pop_back();
13835 return res;
13836 }
13837
13838 /// @brief remove last reference token
13839 /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/

Callers

nothing calls this directly

Calls 1

emptyFunction · 0.85

Tested by

no test coverage detected