MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / pop_back

Function pop_back

include/behaviortree_cpp/contrib/json.hpp:13964–13972  ·  view source on GitHub ↗

@brief remove last reference token @sa https://json.nlohmann.me/api/json_pointer/pop_back/

Source from the content-addressed store, hash-verified

13962 /// @brief remove last reference token
13963 /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
13964 void pop_back()
13965 {
13966 if (JSON_HEDLEY_UNLIKELY(empty()))
13967 {
13968 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", nullptr));
13969 }
13970
13971 reference_tokens.pop_back();
13972 }
13973
13974 /// @brief return last reference token
13975 /// @sa https://json.nlohmann.me/api/json_pointer/back/

Callers 1

eraseFunction · 0.85

Calls 2

emptyFunction · 0.85
createFunction · 0.85

Tested by

no test coverage detected