Newer
Older
Import / research / signals-slots / src / core / multimap.h
@John Ryland John Ryland on 22 Dec 2020 429 bytes import NUC files
#ifndef MULTIMAP_H
#define MULTIMAP_H


#include <dict.h>
#include <list.h>


template<typename T>
class MultiMap : public Dict<T>
{
public:
    List<T> &operator[](const char *key);

    /* expose the base class operator functions */
    T &operator[](int i) { return (*(Iterable<T>*)this)[i]; }
    //const T &operator[](int i) const { return (*(Iterable<T>*)this)[i]; }
};


#include <multimap_impl.h>


#endif // MULTIMAP_H