| 20 | { |
| 21 | template <typename... U> |
| 22 | void emit(U&&... t) |
| 23 | { |
| 24 | HttpClientEvent eventCopy = *this; |
| 25 | for (int idx = 0; idx < eventCopy.numListeners; ++idx) |
| 26 | { |
| 27 | eventCopy.listeners[idx](forward<U>(t)...); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | template <typename Class, void (Class::*MemberFunction)(T...)> |
| 32 | [[nodiscard]] bool addListener(Class& self) |
nothing calls this directly
no outgoing calls
no test coverage detected