Container Class

template <typename Key, typename Value> class Container

A container with key-value pairs. More...

Header: #include <templateparams.h>

Public Functions

void insert(Key k, Value v)
void merge(Other source)

Detailed Description

Key is the type used for keys. Value is the type used for values.

Member Function Documentation

void Container::insert(Key k, Value v)

Inserts key k with value v into the container. The types Key and Value are inherited from the class template.

template <typename Other> void Container::merge(Other source)

Merges source into this container. The Other type must be compatible with this container's Key and Value types.