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

Function try_encode_json_pretty

include/jsoncons/encode_json.hpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112template <typename T,typename CharContainer>
113typename std::enable_if<ext_traits::is_back_insertable_char_container<CharContainer>::value,write_result>::type
114try_encode_json_pretty(const T& val,
115 CharContainer& cont,
116 const basic_json_encode_options<typename CharContainer::value_type>& options
117 = basic_json_encode_options<typename CharContainer::value_type>())
118{
119 using char_type = typename CharContainer::value_type;
120 basic_json_encoder<char_type,jsoncons::string_sink<CharContainer>> encoder(cont, options);
121 return try_encode_json(val, encoder);
122}
123
124template <typename T,typename CharT>
125write_result try_encode_json_pretty(const T& val,

Callers 2

try_encode_jsonFunction · 0.85
encode_json_prettyFunction · 0.85

Calls 2

try_encode_jsonFunction · 0.85
get_temp_allocatorMethod · 0.80

Tested by

no test coverage detected