Function find_prev

Synopsis

#include <include/EASTL/bitset.h>

size_type find_prev(size_type last_find) const

Description

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

Source

Lines 2186-2197 in include/EASTL/bitset.h. Line 428 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline typename bitset<N, WordType>::size_type
bitset<N, WordType>::find_prev(size_type last_find) const
{
    const size_type i = base_type::DoFindPrev(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