template struct mola::ContainerFastMap

Overview

template <
    class T,
    class BASE,
    class Tbase,
    class Tother,
    typename ID,
    const char* Tstr
    >
struct ContainerFastMap: public BASE
{
    // typedefs

    typedef mola::fast_map<ID, T> map_t;

    // fields

    map_t data_;

    // methods

    std::size_t size() const;
    std::pair<ID, T*> emplace_back(T&& e);
    const T& by_id(const ID id) const;
    T& by_id(const ID id);
    std::vector<ID> all_ids() const;
    void clear();
};