MCPcopy Create free account
hub / github.com/davisking/dlib / deserialize

Function deserialize

dlib/unordered_pair.h:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162 template <typename T>
163 void deserialize (
164 unordered_pair<T>& item,
165 std::istream& in
166 )
167 {
168 try
169 {
170 T a, b;
171 deserialize(a,in);
172 deserialize(b,in);
173 item = make_unordered_pair(a,b);
174 }
175 catch (serialization_error& e)
176 { throw serialization_error(e.info + "\n while deserializing object of type unordered_pair"); }
177 }
178
179// ----------------------------------------------------------------------------------------
180

Callers

nothing calls this directly

Calls 2

make_unordered_pairFunction · 0.85
serialization_errorClass · 0.85

Tested by

no test coverage detected