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

Method operator()

test/stream_parser.cpp:594–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592 }
593
594 double
595 operator()(string_view s) const
596 {
597 BOOST_TEST_CHECKPOINT();
598 system::error_code ec;
599 stream_parser p;
600 p.write(s.data(), s.size(), ec);
601 if(BOOST_TEST(! ec))
602 p.finish(ec);
603 if(! BOOST_TEST(! ec))
604 return 0;
605 auto const jv = p.release();
606 double const d = jv.as_double();
607 grind_double(s, d);
608 return d;
609 }
610 };
611
612 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