mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Improve the encapsulation of bit_iterator_base
This commit is contained in:
@@ -1425,13 +1425,20 @@ public:
|
||||
typedef value_type * pointer;
|
||||
typedef value_type & reference;
|
||||
|
||||
static constexpr int bits_per_block = std::numeric_limits< typename Iterator::value_type >::digits;
|
||||
|
||||
bit_iterator_base( Iterator block_iterator, int bit_index );
|
||||
|
||||
template< typename Iter >
|
||||
friend bool operator==( const bit_iterator_base< Iter > & lhs, const bit_iterator_base< Iter > & rhs );
|
||||
template< typename Iter >
|
||||
friend bool operator< ( const bit_iterator_base< Iter > & lhs, const bit_iterator_base< Iter > & rhs );
|
||||
|
||||
protected:
|
||||
void increment();
|
||||
void decrement();
|
||||
void add( typename Iterator::difference_type n );
|
||||
|
||||
static constexpr int bits_per_block = std::numeric_limits< typename Iterator::value_type >::digits;
|
||||
Iterator m_block_iterator;
|
||||
int m_bit_index = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user