MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / to_stream

Function to_stream

Source/external/hps/hps.h:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13// Serialize data t to an STL ostream.
14template <class T>
15void to_stream(const T& t, std::ostream& stream) {
16 StreamOutputBuffer ob(stream);
17 ob << t;
18 ob.flush();
19}
20
21// Parse from an STL istream and save to the data t passed in.
22// Recommended for repeated use inside a loop.

Callers

nothing calls this directly

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected