MCPcopy Create free account
hub / github.com/boostorg/leaf / serialize

Function serialize

test/nlohmann_json_encoder_test.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template <class Handle, class T>
38void serialize(Handle & h, T const & x, char const * name)
39{
40 h.dispatch(
41 [&](nlohmann_json_encoder<nlohmann::json> & e) { output_at(e, x, name); },
42 [&](nlohmann_json_encoder<nlohmann::ordered_json> & e) { output_at(e, x, name); }
43 );
44}
45
46}
47

Callers

nothing calls this directly

Calls 1

dispatchMethod · 0.80

Tested by

no test coverage detected