return array;
}
+ /** Count the number of 1s. */
+ size_t size() const {
+ return get_ones().size();
+ }
+
/** Two vectors are equal if they contain the same indices. */
bool operator==(const sorted_boolean_vector<IT> &vec) const {
return get_ones() == vec.get_ones();
return array;
}
+ /** Count the number of 1s. */
+ size_t size() const {
+ return get_ones().size();
+ }
+
/** Two vectors are equal if they contain the same indices. */
bool operator==(const heapsorted_boolean_vector<IT> &vec) const {
return get_ones() == vec.get_ones();