lemon/iterable_maps.h
changeset 2504 46a82ce84cc6
parent 2391 14a343be7a5a
child 2553 bfced05fa852
equal deleted inserted replaced
18:a4755ffee9f0 19:392ebc5ed60c
   172         array[sep] = key;
   172         array[sep] = key;
   173         Parent::set(key, sep);
   173         Parent::set(key, sep);
   174         array[pos] = tmp;
   174         array[pos] = tmp;
   175         Parent::set(tmp, pos);
   175         Parent::set(tmp, pos);
   176       }
   176       }
       
   177     }
       
   178 
       
   179     /// \brief Set all items.
       
   180     ///
       
   181     /// Set all items in the map.
       
   182     /// \note Constant time operation.
       
   183     void setAll(bool value) {
       
   184       sep = (value ? array.size() : 0);      
   177     }
   185     }
   178 
   186 
   179     /// \brief Returns the number of the keys mapped to true.
   187     /// \brief Returns the number of the keys mapped to true.
   180     ///
   188     ///
   181     /// Returns the number of the keys mapped to true.
   189     /// Returns the number of the keys mapped to true.