Function DoFindLast

Synopsis

#include <include/EASTL/bitset.h>

size_type DoFindLast() const

Description

No description yet.

Source

Lines 1044-1057 in include/EASTL/bitset.h. Line 325 in include/EASTL/bitset.h.

template <size_t NW, typename WordType>
inline typename BitsetBase<NW, WordType>::size_type 
BitsetBase<NW, WordType>::DoFindLast() const
{
    for(size_type word_index = (size_type)NW; word_index > 0; --word_index)
    {
        const size_type lbiw = GetLastBit(mWord[word_index - 1]);
        if(lbiw != kBitsPerWord)
            return ((word_index - 1) * kBitsPerWord) + lbiw;
    }
    return (size_type)NW * kBitsPerWord;
}





Add Discussion as Guest

Log in