MCPcopy Create free account
hub / github.com/boostorg/hana / trigger

Method trigger

example/map/map.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31 template <typename Event>
32 void trigger(Event e) const {
33 auto is_known_event = hana::contains(map_, e);
34 static_assert(is_known_event,
35 "trying to trigger an unknown event");
36
37 for (auto& handler : this->map_[e])
38 handler();
39 }
40};
41
42template <typename ...Events>

Callers 1

mainFunction · 0.80

Calls 1

containsClass · 0.50

Tested by

no test coverage detected