| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected