COIN-OR::LEMON - Graph Library

Changeset 233:57ef4fd493d5 in lemon-0.x


Ignore:
Timestamp:
03/22/04 17:07:42 (21 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@330
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.h

    r232 r233  
    4646      void set(Node n, T a) { container[/*G.id(n)*/n.node->id]=a; }
    4747      T get(Node n) const { return container[/*G.id(n)*/n.node->id]; }
    48       std::vector<T>::reference operator[](Node n) {
     48      typename std::vector<T>::reference operator[](Node n) {
    4949        return container[/*G.id(n)*/n.node->id]; }
    50       std::vector<T>::const_reference operator[](Node n) const {
     50      typename std::vector<T>::const_reference operator[](Node n) const {
    5151        return container[/*G.id(n)*/n.node->id];
    5252      }
     
    6767      void set(Edge e, T a) { container[/*G.id(e)*/e.edge->id]=a; }
    6868      T get(Edge e) const { return container[/*G.id(e)*/e.edge->id]; }
    69       std::vector<T>::reference operator[](Edge e) {
     69      typename std::vector<T>::reference operator[](Edge e) {
    7070        return container[/*G.id(e)*/e.edge->id]; }
    71       std::vector<T>::const_reference operator[](Edge e) const {
     71      typename std::vector<T>::const_reference operator[](Edge e) const {
    7272        return container[/*G.id(e)*/e.edge->id];
    7373      }
Note: See TracChangeset for help on using the changeset viewer.