COIN-OR::LEMON - Graph Library

Changeset 209:9a37b8d02d74 in lemon-0.x for src/work/alpar/mapskeleton.h


Ignore:
Timestamp:
03/19/04 21:58:39 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@304
Message:

get() -> operator[]()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/alpar/mapskeleton.h

    r186 r209  
    1919   
    2020    ///Reads an element of the map.
    21     ValueType get(const KeyType &i) const {return ValueType();}
     21    ValueType operator[](const KeyType &i) const {return ValueType();}
    2222  };
    2323
     
    7171
    7272    ///Give a reference to the value belonging to a key.
    73     ValueType &operator[](const KeyType &i) {return *(ValueType*)0;}
    74     //    const ValueType &operator[](const KeyType &i) const {return *(T*)0;}
     73    ValueType &operator[](const KeyType &i) {return *(ValueType*)0;}
     74    ///Give a const reference to the value belonging to a key.
     75    const ValueType &operator[](const KeyType &i) const {return *(T*)0;}
    7576  };
    7677
Note: See TracChangeset for help on using the changeset viewer.