10 	template <typename G, typename K, typename KIt>
 
    11 	class VectorMapFactory {
 
    21 		class Map : public MapBase<G, K, KIt> {
 
    27 			Map(Graph& g, MapRegistry<G, K, KIt>& r) 
 
    28 				: MapBase<G, K, KIt>(g, r) {
 
    37 			Value& operator[](const K& key) {
 
    38 				int id = graph->id(key);
 
    42 			const Value& operator[](const K& key) const {
 
    43 				int id = graph->id(key);
 
    47 			const Value& get(const K& key) const {
 
    48 				int id = graph->id(key);
 
    52 			void set(const K& key, const Value& val) {
 
    53 				int id = graph->id(key);
 
    57 			void add(const K& key) {
 
    58 				int id = graph->id(key);
 
    59 				if (id >= container.size()) {
 
    60 					container.resize(id + 1);
 
    64 			void erase(const K& key) {}
 
    67 			typedef std::vector<Value> Container;