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

Function serialize

dlib/stl_checked/std_vector_c.h:286–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284
285 template <typename T, typename alloc>
286 void serialize (
287 const std_vector_c<T,alloc>& item,
288 std::ostream& out
289 )
290 {
291 try
292 {
293 const unsigned long size = static_cast<unsigned long>(item.size());
294
295 serialize(size,out);
296 for (unsigned long i = 0; i < item.size(); ++i)
297 serialize(item[i],out);
298 }
299 catch (serialization_error& e)
300 { throw serialization_error(e.info + "\n while serializing object of type std_vector_c"); }
301 }
302
303// ----------------------------------------------------------------------------------------
304

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected