Skip to content

Commit

Permalink
bitvec: add one_out() (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch authored Oct 22, 2024
1 parent 5b2ca78 commit 0469892
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/cista/containers/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ struct basic_bitvec {
}
}

void one_out() {
for (auto& b : blocks_) {
b = ~block_t{0};
}
}

void resize(size_type const new_size) {
if (new_size == size_) {
return;
Expand Down

0 comments on commit 0469892

Please sign in to comment.