MCPcopy Create free account
hub / github.com/boostorg/leaf / print

Function print

test/print_test.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71template <int Line, class T>
72std::string print(T const & x, char const * prefix, char const * delimiter)
73{
74 std::ostringstream s;
75 leaf::detail::diagnostics_writer w(s);
76 w.set_prefix(prefix);
77 w.set_delimiter(delimiter);
78 w.write(x);
79 w.write(x);
80 std::string q = s.str();
81 std::cout << "[LINE " << Line << "] " << q << '\n';
82 return q;
83}
84
85struct my_exception: std::exception
86{

Callers 4

appendFunction · 0.85
_mainFunction · 0.85
_mainFunction · 0.85
writeMethod · 0.85

Calls 3

set_prefixMethod · 0.80
set_delimiterMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected