Function find_last


#include <include/EASTL/bitset.h>

size_type find_last() const


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


Lines 2172-2183 in include/EASTL/bitset.h. Line 425 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline typename bitset<N, WordType>::size_type
bitset<N, WordType>::find_last() const
    const size_type i = base_type::DoFindLast();
    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