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

Function try_encode_csv

include/jsoncons_ext/csv/encode_csv.hpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template <typename T,typename CharContainer>
28typename std::enable_if<ext_traits::is_basic_json<T>::value &&
29 ext_traits::is_back_insertable_char_container<CharContainer>::value,write_result>::type
30try_encode_csv(const T& j, CharContainer& cont, const basic_csv_encode_options<typename CharContainer::value_type>& options = basic_csv_encode_options<typename CharContainer::value_type>())
31{
32 using char_type = typename CharContainer::value_type;
33 basic_csv_encoder<char_type,jsoncons::string_sink<std::basic_string<char_type>>> encoder(cont,options);
34 return j.try_dump(encoder);
35}
36
37template <typename T,typename CharContainer>
38typename std::enable_if<!ext_traits::is_basic_json<T>::value &&

Callers 1

encode_csvFunction · 0.85

Calls 2

make_alloc_setFunction · 0.85
get_temp_allocatorMethod · 0.80

Tested by

no test coverage detected