Function test

Synopsis

#include <include/EASTL/bitset.h>

bool test(size_type i) const

Description

No description yet.

Source

Lines 2089-2104 in include/EASTL/bitset.h. Line 410 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline bool bitset<N, WordType>::test(size_type i) const
{
    if(EASTL_UNLIKELY(i < N))
        return (DoGetWord(i) & (static_cast<word_type>(1) << (i & kBitsPerWordMask))) != 0;
    #if EASTL_ASSERT_ENABLED
        EASTL_FAIL_MSG("bitset::test -- out of range");
    #endif
    #if EASTL_EXCEPTIONS_ENABLED
        throw std::out_of_range("bitset::test");
    #else
        return false;
    #endif
}





Add Discussion as Guest

Log in