Function find_next


#include <include/EASTL/bitset.h>

size_type find_next(size_type last_find) const


Finds the index of the next "on" bit after last_find, returns kSize if none are set.


Lines 2158-2169 in include/EASTL/bitset.h. Line 422 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline typename bitset<N, WordType>::size_type
bitset<N, WordType>::find_next(size_type last_find) const
    const size_type i = base_type::DoFindNext(last_find);
    if(i < kSize)
        return i;
    // Else i could be the base type bit count, so we clamp it to our size.
    return kSize;

Add Discussion as Guest

Log in