MCPcopy Create free account
hub / github.com/dobin/RedEdr / patch

Function patch

RedEdrShared/json.hpp:24320–24325  ·  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

24318 /// @brief applies a JSON patch to a copy of the current object
24319 /// @sa https://json.nlohmann.me/api/basic_json/patch/
24320 basic_json patch(const basic_json& json_patch) const
24321 {
24322 basic_json result = *this;
24323 result.patch_inplace(json_patch);
24324 return result;
24325 }
24326
24327 /// @brief creates a diff as a JSON patch
24328 /// @sa https://json.nlohmann.me/api/basic_json/diff/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected