Skip to content

Instantly share code, notes, and snippets.

View stephanpareigis's full-sized avatar

Stephan Pareigis stephanpareigis

  • University of Applied Sciences
  • Berliner Tor 7, 20099 Hamburg
View GitHub Profile
#include "Dispatcher.h"
#include <utility>
Dispatcher::Dispatcher() noexcept { }
Dispatcher::Dispatcher(std::initializer_list<container_type::value_type> initL)
: cont_{ std::move(initL) } { }
void Dispatcher::registerNotification(Notification notif, value_type const &callable) {
cont_.emplace(notif, callable);