Newer
Older
Import / research / signals-slots / src / core / map_impl.h
@John John on 29 Dec 2020 256 bytes bulk import from macbookpro checkouts
#include <map.h>
#include <string.h>
#include <stdlib.h>


template<typename T>
T &Map<T>::operator[](const char *key)
{
    for (int i = 0; i < cnt; i++)
        if (!strcmp(key,keys[i]))
            return items[i];
    static T ret;
    return ret;
}