MCPcopy Create free account
hub / github.com/boostorg/json / Object

Class Object

fuzzing/fuzz_direct_parse.cpp:35–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using namespace boost::json;
34
35struct Object
36{
37 bool b;
38 float f;
39 double d;
40 std::int64_t i64;
41 std::uint64_t u64;
42 std::string s;
43 std::vector<bool> v1;
44 std::vector<std::int64_t> v2;
45 std::vector<std::uint64_t> v3;
46 std::array<bool, 3> a1;
47 std::array<std::int64_t, 3> a2;
48 std::array<std::uint64_t, 3> a3;
49 std::map<std::string, std::int64_t> m1;
50 std::map<std::string, std::string> m2;
51 std::map<std::string, double> m3;
52 std::tuple<bool, std::uint64_t, std::int64_t, double, std::string> t1;
53 std::tuple<std::array<std::string, 3>, std::array<double, 3>, std::nullptr_t> t2;
54 std::tuple<std::vector<std::string>, std::vector<double>> t3;
55 boost::variant2::variant<bool, std::uint64_t, std::int64_t, double, std::string> v;
56
57#ifndef BOOST_NO_CXX17_HDR_OPTIONAL
58 std::optional<bool> ob;
59 std::optional<std::int64_t> oi;
60 std::optional<std::uint64_t> ou;
61 std::optional<double> od;
62 std::optional<std::string> os;
63#endif // BOOST_NO_CXX17_HDR_OPTIONAL
64};
65
66BOOST_DESCRIBE_STRUCT(Object, (),
67 (b, i64, u64, f, d, s, v1, v2, v3, a1, a2, a3, m1, m2, m3, t1, t2, t3, v,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected