Function DoFindFirst

Synopsis

#include <include/EASTL/bitset.h>

size_type DoFindFirst() const

Description

No description yet.

Source

Lines 984-997 in include/EASTL/bitset.h. Line 141 in include/EASTL/bitset.h.

template <size_t NW, typename WordType>
inline typename BitsetBase<NW, WordType>::size_type 
BitsetBase<NW, WordType>::DoFindFirst() const
{
    for(size_type word_index = 0; word_index < NW; ++word_index)
    {
        const size_type fbiw = GetFirstBit(mWord[word_index]);
        if(fbiw != kBitsPerWord)
            return (word_index * kBitsPerWord) + fbiw;
    }
    return (size_type)NW * kBitsPerWord;
}





Add Discussion as Guest

Log in