Changeset 897:ef09eee53b09 in lemon-0.x for src/hugo/vector_map.h
- Timestamp:
- 09/22/04 10:04:31 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1205
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/vector_map.h
r891 r897 70 70 typedef typename Container::const_pointer ConstPointerType; 71 71 72 /** Default constructor for the map.73 */74 VectorMap() {}75 76 72 /** Graph and Registry initialized map constructor. 77 73 */ … … 99 95 template <typename TT> 100 96 VectorMap& operator=(const VectorMap<MapRegistry, TT>& c) { 101 container.resize(c.container.size()); 102 MapBase::operator=(c); 97 if (MapBase::getGraph() != c.getGraph()) { 98 MapBase::operator=(c); 99 container.resize(c.container.size()); 100 } 103 101 for (KeyIt it(*MapBase::getGraph()); it != INVALID; ++it) { 104 102 int id = KeyInfo<Graph, KeyIt>::id(*MapBase::getGraph(), it);
Note: See TracChangeset
for help on using the changeset viewer.