MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / serialize

Function serialize

benchmarks/dlib/serialize.h:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 typename T
313 >
314 void serialize (
315 const ramdump_t<const T>& item_,
316 std::ostream& out
317 )
318 {
319 // Move the const from inside the ramdump_t template to outside so we can bind
320 // against a serialize() call that takes just a const ramdump_t<T>. Doing this
321 // saves you from needing to write multiple overloads of serialize() to handle
322 // these different const placement cases.
323 const auto temp = ramdump(const_cast<T&>(item_.item));
324 serialize(temp, out);
325 }
326
327// ----------------------------------------------------------------------------------------
328

Callers 5

serialize_floating_pointFunction · 0.70
operator()Method · 0.70
proxy_serializeClass · 0.70
serialize_theseFunction · 0.70
serialize.hFile · 0.70

Calls 15

ramdumpFunction · 0.85
serialize_floating_pointFunction · 0.85
serialization_errorClass · 0.85
for_each_in_tupleFunction · 0.85
proxy_serializeClass · 0.85
maxFunction · 0.85
writeMethod · 0.80
move_nextMethod · 0.80
host_to_littleMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected