Skip to content

Commit

Permalink
bitvec: blocks + size ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jan 13, 2025
1 parent 1bafc9a commit 577c81f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/cista/containers/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ struct basic_bitvec {
constexpr basic_bitvec(Vec&& v)
: size_{v.size() * bits_per_block}, // inaccurate for loading mmap vector
blocks_{std::move(v)} {}
constexpr basic_bitvec(Vec&& v, size_type const size)
: size_{size}, // inaccurate for loading mmap vector
blocks_{std::move(v)} {}
static constexpr basic_bitvec max(std::size_t const size) {
basic_bitvec ret;
ret.resize(size);
Expand Down

0 comments on commit 577c81f

Please sign in to comment.