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

Function as_double

include/jsoncons/basic_json.hpp:3841–3849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3839 }
3840
3841 double as_double() const
3842 {
3843 auto result = try_as_double();
3844 if (!result)
3845 {
3846 JSONCONS_THROW(conv_error(result.error().code()));
3847 }
3848 return *result;
3849 }
3850
3851 template <typename T,typename Alloc, typename TempAlloc>
3852 typename std::enable_if<ext_traits::is_string<T>::value &&

Callers 2

compareFunction · 0.85
get_Method · 0.85

Calls 4

try_as_doubleFunction · 0.85
conv_errorClass · 0.85
errorMethod · 0.80
codeMethod · 0.45

Tested by

no test coverage detected