doc/maps.dox
changeset 528 c00f6ebbe1e6
parent 289 98adf9276de0
child 685 c7e37b066033
equal deleted inserted replaced
5:33e0d9a82e8b 6:35be12054a7a
    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;}