MCPcopy Create free account
hub / github.com/Huntereb/Awoo-Installer / parent_pointer

Function parent_pointer

include/util/json.hpp:14649–14659  ·  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

14647 /// @brief returns the parent of this JSON pointer
14648 /// @sa https://json.nlohmann.me/api/json_pointer/parent_pointer/
14649 json_pointer parent_pointer() const
14650 {
14651 if (empty())
14652 {
14653 return *this;
14654 }
14655
14656 json_pointer res = *this;
14657 res.pop_back();
14658 return res;
14659 }
14660
14661 /// @brief remove last reference token
14662 /// @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