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

Function try_encode_json

include/jsoncons/encode_json.hpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <typename T,typename CharT>
24typename std::enable_if<ext_traits::is_basic_json<T>::value,write_result>::type
25 try_encode_json(const T& val, basic_json_visitor<CharT>& encoder)
26{
27 return val.try_dump(encoder);
28}
29
30template <typename T,typename CharT>
31typename std::enable_if<!ext_traits::is_basic_json<T>::value,write_result>::type

Callers 2

try_encode_json_prettyFunction · 0.85
encode_jsonFunction · 0.85

Calls 4

make_alloc_setFunction · 0.85
try_encode_json_prettyFunction · 0.85
get_temp_allocatorMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected