MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / pop_back

Function pop_back

examples/server/json.hpp:13840–13848  ·  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

13838 /// @brief remove last reference token
13839 /// @sa https://json.nlohmann.me/api/json_pointer/pop_back/
13840 void pop_back()
13841 {
13842 if (JSON_HEDLEY_UNLIKELY(empty()))
13843 {
13844 JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent", nullptr));
13845 }
13846
13847 reference_tokens.pop_back();
13848 }
13849
13850 /// @brief return last reference token
13851 /// @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