[Lemon-commits] deba: r3336 - lemon/trunk/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Wed Oct 17 14:46:16 CEST 2007
Author: deba
Date: Wed Oct 17 14:46:14 2007
New Revision: 3336
Modified:
lemon/trunk/lemon/iterable_maps.h
Log:
setAll for iterable bool maps
Modified: lemon/trunk/lemon/iterable_maps.h
==============================================================================
--- lemon/trunk/lemon/iterable_maps.h (original)
+++ lemon/trunk/lemon/iterable_maps.h Wed Oct 17 14:46:14 2007
@@ -176,6 +176,14 @@
}
}
+ /// \brief Set all items.
+ ///
+ /// Set all items in the map.
+ /// \note Constant time operation.
+ void setAll(bool value) {
+ sep = (value ? array.size() : 0);
+ }
+
/// \brief Returns the number of the keys mapped to true.
///
/// Returns the number of the keys mapped to true.
More information about the Lemon-commits
mailing list