src/lemon/bits/array_map.h
changeset 1374 bcfa3980b432
parent 1359 1581f961cfaa
child 1414 01d9d6bc1284
equal deleted inserted replaced
1:774f32b9dcc4 2:294456adea97
    94       }								
    94       }								
    95     }
    95     }
    96 
    96 
    97     /** Constructor to copy a map of the same map type.
    97     /** Constructor to copy a map of the same map type.
    98      */
    98      */
    99     ArrayMap(const ArrayMap& copy) {
    99     ArrayMap(const ArrayMap& copy) : Parent() {
   100       if (copy.attached()) {
   100       if (copy.attached()) {
   101 	attach(*copy.getRegistry());
   101 	attach(*copy.getRegistry());
   102       }
   102       }
   103       capacity = copy.capacity;
   103       capacity = copy.capacity;
   104       if (capacity == 0) return;
   104       if (capacity == 0) return;