# Class AnyId reference ## Description The template class `AnyId` can be used as the event ID type in `EventDispatcher` and `EventQueue`, then any types can be used as the event type. For example, ```c++ eventpp::EventQueue, void()> eventQueue; eventQueue.appendListener(3, []() {}); // listener 1 eventQueue.appendListener(std::string("hello"), []() {}); // listener 2 eventQueue.dispatch(3); // trigger listener 1 eventQueue.dispatch(std::string("hello")); // trigger listener 2 ``` ## API reference ### Header eventpp/utilities/anyid.h ### Class AnyId template parameters ```c++ template