use an STL hash map for a key/value relationship like mIRC's hash tables (which I think is implemented using a wrapper around a hash map)