Skip to content

Commit

Permalink
Fixed bitvec.h (#3239)
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy authored Apr 22, 2022
1 parent 2e0231c commit db05fa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/bitvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ class bitvec {
bool rv = self.getbit(idx);
b ? self.setbit(idx) : self.clrbit(idx);
return rv; }
using difference_type = std::ptrdiff_t;
using value_type = const bitvec;
using pointer = const bitvec*;
using reference = const bool&;
using iterator_category = std::bidirectional_iterator_tag;
};
typedef nonconst_bitref iterator;

Expand All @@ -140,6 +145,11 @@ class bitvec {
const_bitref(const bitref<const bitvec &> &a) : bitref(a) {} // NOLINT(runtime/explicit)
const_bitref(const const_bitref &a) = default;
const_bitref(const_bitref &&a) = default;
using difference_type = std::ptrdiff_t;
using value_type = const bitvec;
using pointer = const bitvec*;
using reference = const bool&;
using iterator_category = std::bidirectional_iterator_tag;
};
typedef const_bitref const_iterator;

Expand Down

0 comments on commit db05fa8

Please sign in to comment.