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

Function operator==

tools/include/operation.hpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template <class T, class U>
120auto operator==(const T& x, const U& y) -> decltype(x.name() == y.name())
121{
122 static_assert(is_reflectable<T>{} or sizeof(T) <= 1,
123 "Missing equality operator or reflect method.");
124 if(x.name() != y.name())
125 return false;
126 const auto& yy = any_cast<T>(y);
127 return reflect_tie(x) == reflect_tie(yy);
128}
129
130} // namespace operation_operators
131

Callers

nothing calls this directly

Calls 2

reflect_tieFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected