#include <multimap.h>
#include <string.h>
#include <stdlib.h>
template<typename T>
List<T> &MultiMap<T>::operator[](const char *key)
{
static List<T> ret;
List<T> empty;
ret = empty;
for (int i = 0; i < this->cnt; i++)
if (!strcmp(key,this->keys[i]))
ret += this->items[i];
return ret;
}