equal
deleted
inserted
replaced
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. |