MCPcopy Create free account
hub / github.com/cinder/Cinder / parent_pointer

Method parent_pointer

include/nlohmann/detail/json_pointer.hpp:103–113  ·  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

101 /// @brief returns the parent of this JSON pointer
102 /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
103 json_pointer parent_pointer() const
104 {
105 if (empty())
106 {
107 return *this;
108 }
109
110 json_pointer res = *this;
111 res.pop_back();
112 return res;
113 }
114
115 /// @brief remove last reference token
116 /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/

Callers

nothing calls this directly

Calls 2

pop_backMethod · 0.80
emptyFunction · 0.50

Tested by

no test coverage detected