[bitset] get_nr_bits() method

This commit is contained in:
Joe Thornber
2013-11-18 13:07:08 +00:00
parent fd061fab15
commit b32a3b9fb9
2 changed files with 11 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ namespace persistent_data {
return array_.get_root();
}
unsigned get_nr_bits() const {
return nr_bits_;
}
void grow(unsigned new_nr_bits, bool default_value) {
pad_last_block(default_value);
resize_array(new_nr_bits, default_value);
@@ -214,6 +218,12 @@ bitset::get_root() const
return impl_->get_root();
}
unsigned
bitset::get_nr_bits() const
{
return impl_->get_nr_bits();
}
void
bitset::grow(unsigned new_nr_bits, bool default_value)
{