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

Function as_string

include/jsoncons/basic_json.hpp:3898–3907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3896
3897 template <typename CharsAlloc>
3898 std::basic_string<char_type,char_traits_type,CharsAlloc> as_string(const CharsAlloc& alloc) const
3899 {
3900 using value_type = std::basic_string<char_type,char_traits_type,CharsAlloc>;
3901 auto r = try_as_string<value_type>(make_alloc_set(alloc));
3902 if (!r)
3903 {
3904 JSONCONS_THROW(conv_error(r.error().code()));
3905 }
3906 return *r;
3907 }
3908
3909 template <typename CharsAlloc=std::allocator<char_type>>
3910 std::basic_string<char_type,char_traits_type,CharsAlloc> as_string() const

Callers

nothing calls this directly

Calls 4

make_alloc_setFunction · 0.85
conv_errorClass · 0.85
errorMethod · 0.80
codeMethod · 0.45

Tested by

no test coverage detected