lemon/bits/default_map.h
changeset 2059 ebf3b2962554
parent 2031 080d51024ac5
child 2164 160ca7667159
equal deleted inserted replaced
18:c24a10b4e73b 19:f8547aff3e09
   157     typedef DefaultMap<_Graph, _Item, _Value> Map;
   157     typedef DefaultMap<_Graph, _Item, _Value> Map;
   158     
   158     
   159     typedef typename Parent::Graph Graph;
   159     typedef typename Parent::Graph Graph;
   160     typedef typename Parent::Value Value;
   160     typedef typename Parent::Value Value;
   161 
   161 
   162     DefaultMap(const Graph& graph) : Parent(graph) {}
   162     explicit DefaultMap(const Graph& graph) : Parent(graph) {}
   163     DefaultMap(const Graph& graph, const Value& value) 
   163     DefaultMap(const Graph& graph, const Value& value) 
   164       : Parent(graph, value) {}
   164       : Parent(graph, value) {}
   165 
   165 
   166     DefaultMap& operator=(const DefaultMap& cmap) {
   166     DefaultMap& operator=(const DefaultMap& cmap) {
   167       return operator=<DefaultMap>(cmap);
   167       return operator=<DefaultMap>(cmap);