Use dynamic_bitset.emplace_back()

This commit is contained in:
topjohnwu
2022-02-11 01:00:58 -08:00
parent f6d765bf81
commit 55ed6109c1
2 changed files with 15 additions and 12 deletions

View File

@@ -93,6 +93,9 @@ public:
slot_type get_slot(size_t slot) const {
return slot_list.size() > slot ? slot_list[slot].to_ulong() : 0ul;
}
void emplace_back(slot_type l) {
slot_list.emplace_back(l);
}
protected:
slot_bits::reference get(size_t pos) {
size_t slot = pos / slot_size;