Develop a basic event manager system in C++. Implement a class `EventManager` that allows registering callback functions to named events and triggering those events.
To implement the class, you need to describe two public methods:
subscribe(){}
void emit(){}
and one a private field:
map<string, vector<std::function<void()>>> handlers;
Note. Feel free to refer to the theory to better understand what and how you need to implement this class.