lemon/bits/array_map.h
changeset 276 b4784a66a8e6
parent 209 765619b7cbb2
child 314 2cc60866a0c9
equal deleted inserted replaced
2:e0be5f078348 3:68a69d1b2f60
   101         int id = nf->id(it);;
   101         int id = nf->id(it);;
   102         allocator.construct(&(values[id]), value);
   102         allocator.construct(&(values[id]), value);
   103       }
   103       }
   104     }
   104     }
   105 
   105 
       
   106   private:
   106     /// \brief Constructor to copy a map of the same map type.
   107     /// \brief Constructor to copy a map of the same map type.
   107     ///
   108     ///
   108     /// Constructor to copy a map of the same map type.
   109     /// Constructor to copy a map of the same map type.
   109     ArrayMap(const ArrayMap& copy) : Parent() {
   110     ArrayMap(const ArrayMap& copy) : Parent() {
   110       if (copy.attached()) {
   111       if (copy.attached()) {
   148         set(it, cmap[it]);
   149         set(it, cmap[it]);
   149       }
   150       }
   150       return *this;
   151       return *this;
   151     }
   152     }
   152 
   153 
       
   154   public:
   153     /// \brief The destructor of the map.
   155     /// \brief The destructor of the map.
   154     ///
   156     ///
   155     /// The destructor of the map.
   157     /// The destructor of the map.
   156     virtual ~ArrayMap() {
   158     virtual ~ArrayMap() {
   157       if (attached()) {
   159       if (attached()) {