Function DoFindPrev

Synopsis

#include <include/EASTL/bitset.h>

size_type DoFindPrev(size_type last_find) const

Description

No description yet.

Source

Lines 1337-1350 in include/EASTL/bitset.h. Line 211 in include/EASTL/bitset.h.

template <typename WordType>
inline typename BitsetBase<1, WordType>::size_type 
BitsetBase<1, WordType>::DoFindPrev(size_type last_find) const
{
    if(last_find > 0)
    {
        // Mask off previous bits of word so our search becomes a "find first".
        const word_type this_word = mWord[0] & ((~static_cast<word_type>(0)) >> (kBitsPerWord - last_find));
        return GetLastBit(this_word);
    }
    return kBitsPerWord;
}





Add Discussion as Guest

Log in