equal
deleted
inserted
replaced
29 { |
29 { |
30 double operator[](Graph::Edge e) const { return M_PI;} |
30 double operator[](Graph::Edge e) const { return M_PI;} |
31 }; |
31 }; |
32 \endcode |
32 \endcode |
33 |
33 |
34 Or if we had \c KeyType and \c ValueType |
34 Or, if we had \c KeyType and \c ValueType |
35 |
35 |
36 \code |
36 \code |
37 struct MyMap : public MapBase<Edge,double> |
37 struct MyMap : public MapBase<Edge,double> |
38 { |
38 { |
39 ValueType operator[](KeyType e) const { return M_PI;} |
39 ValueType operator[](KeyType e) const { return M_PI;} |