MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / get

Function get

include/jsoncons_ext/jsonpointer/jsonpointer.hpp:582–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581 template <typename Json,typename StringSource>
582 typename std::enable_if<std::is_convertible<StringSource,jsoncons::basic_string_view<typename Json::char_type>>::value,Json&>::type
583 get(Json& root,
584 const StringSource& location_str,
585 bool create_if_missing,
586 std::error_code& ec)
587 {
588 auto jsonptr = basic_json_pointer<typename Json::char_type>::parse(location_str, ec);
589 if (JSONCONS_UNLIKELY(ec))
590 {
591 return root;
592 }
593 return get(root, jsonptr, create_if_missing, ec);
594 }
595
596 template <typename Json>
597 const Json& get(const Json& root,

Callers 2

jsonpointer.hppFile · 0.70
containsFunction · 0.70

Calls 2

parseFunction · 0.85
jsonpointer_errorClass · 0.85

Tested by

no test coverage detected