5#ifndef V8_BASE_BITS_ITERATOR_H_
6#define V8_BASE_BITS_ITERATOR_H_
17template <
typename T,
bool kMSBFirst = false>
19 static_assert(std::is_integral<T>::value);
30 bits_ &= ~(T{1} << **
this);
bool operator==(BitsIterator other)
bool operator!=(BitsIterator other)
BitsIterator & operator++()
constexpr unsigned CountLeadingZeros(T value)
constexpr unsigned CountTrailingZeros(T value)
auto IterateBitsBackwards(T bits)
auto make_iterator_range(ForwardIterator begin, ForwardIterator end)