MCPcopy Create free account
hub / github.com/boostorg/json / operator()

Method operator()

test/double.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 double
53 operator()(string_view s, parse_options const& po = {}) const
54 {
55 BOOST_TEST_CHECKPOINT();
56 system::error_code ec;
57 stream_parser p({}, po);
58 p.write(s.data(), s.size(), ec);
59 if(BOOST_TEST(! ec))
60 p.finish(ec);
61 if(! BOOST_TEST(! ec))
62 return 0;
63 auto const jv = p.release();
64 double const d = jv.as_double();
65 grind_double(s, d, po);
66 return d;
67 }
68 };
69
70 bool

Callers

nothing calls this directly

Calls 5

finishMethod · 0.80
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected