Example 5: A Simple Use-Case for the Linked Hash

linked_hash<string, MyDevice>	devices;

void insert_event(const string& name, MyEvent& evt)
{
    devices[name].queue(evt);
}

void process()
{
    for_each(devices.begin(), devices.end(), DevProcessor());
}