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

Function patch

examples/server/json.hpp:24117–24122  ·  view source on GitHub ↗

@brief applies a JSON patch to a copy of the current object @sa https://json.nlohmann.me/api/basic_json/patch/

Source from the content-addressed store, hash-verified

24115 /// @brief applies a JSON patch to a copy of the current object
24116 /// @sa https://json.nlohmann.me/api/basic_json/patch/
24117 basic_json patch(const basic_json& json_patch) const
24118 {
24119 basic_json result = *this;
24120 result.patch_inplace(json_patch);
24121 return result;
24122 }
24123
24124 /// @brief creates a diff as a JSON patch
24125 /// @sa https://json.nlohmann.me/api/basic_json/diff/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected