MCPcopy Create free account
hub / github.com/3rdparty/libprocess / is

Method is

include/process/event.hpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template <typename T>
68 bool is() const
69 {
70 bool result = false;
71 struct IsVisitor : EventVisitor
72 {
73 explicit IsVisitor(bool* _result) : result(_result) {}
74 void visit(const T&) override { *result = true; }
75 bool* result;
76 } visitor(&result);
77 visit(&visitor);
78 return result;
79 }
80
81 template <typename T>
82 const T& as() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected