COIN-OR::LEMON - Graph Library

Changeset 377:33fe0ee01dc5 in lemon-0.x for src/work/deba/vector_map.h


Ignore:
Timestamp:
04/22/04 18:36:57 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@507
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/deba/vector_map.h

    r340 r377  
    3535       
    3636        void add(const K& key) {
    37                 container.resize(key->id);
     37                if (key->id() >= container.size()) {
     38                        container.resize(key->id() + 1);
     39                }
    3840        }
    3941       
     
    4446       
    4547        Container container;
    46 }
     48};
    4749
    4850#endif
Note: See TracChangeset for help on using the changeset viewer.