MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / emit

Function emit

Libraries/HttpClient/Internal/HttpClientEvent.h:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected