MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / operator<<

Function operator<<

tools/include/operation.hpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103template <class T>
104auto operator<<(std::ostream& os, const T& x) -> decltype(os << x.name())
105{
106 os << x.name();
107 char delim = '[';
108 reflect_each(x, [&](auto&& y, auto name) {
109 os << delim;
110 os << name << "=";
111 stream_write_value(os, y);
112 delim = ',';
113 });
114 if(delim == ',')
115 os << "]";
116 return os;
117}
118
119template <class T, class U>
120auto operator==(const T& x, const U& y) -> decltype(x.name() == y.name())

Callers

nothing calls this directly

Calls 3

reflect_eachFunction · 0.85
stream_write_valueFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected