Newer
Older
Import / research / signals-slots / src / core / multimap_impl.h
@John Ryland John Ryland on 22 Dec 2020 332 bytes import NUC files
#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;
}