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


#include <dict.h>


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

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


#include <map_impl.h>


#endif // MAP_H