MCPcopy Create free account
hub / github.com/USCiLab/cereal / load_and_construct

Method load_and_construct

unittests/user_data_adapters.hpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template <class Archive>
68 static void load_and_construct( Archive & ar, cereal::construct<UserStruct> & construct )
69 {
70 std::int32_t ii;
71 ar( ii );
72 auto & data = cereal::get_user_data<UserData>( ar );
73 construct( ii, data.p, data.ref.get() );
74 }
75};
76
77template <class IArchive, class OArchive> inline

Callers

nothing calls this directly

Calls 1

constructClass · 0.85

Tested by

no test coverage detected