MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / predicate

Class predicate

test/include/test.hpp:322–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321template <class F>
322struct predicate
323{
324 std::string msg;
325 F f;
326
327 friend std::ostream& operator<<(std::ostream& s, const predicate& self)
328 {
329 s << self.msg;
330 return s;
331 }
332
333 decltype(auto) operator()() const { return f(); }
334
335 operator decltype(auto)() const { return f(); }
336};
337
338template <class F>
339auto make_predicate(const std::string& msg, F f)

Callers 1

reachesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected