Function bitset

Summary

#include <include/EASTL/bitset.h>

(1) bitset()

(2) bitset(uint32_t value)

Function overload

Synopsis

#include <include/EASTL/bitset.h>

bitset()

Description

bitset

Source

Lines 1788-1793 in include/EASTL/bitset.h. Line 367 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline bitset<N, WordType>::bitset()
    : base_type()
{
    // Empty. The base class will set all bits to zero.
}

Synopsis

#include <include/EASTL/bitset.h>

bitset(uint32_t value)

Description

No description yet.

Source

Lines 1795-1802 in include/EASTL/bitset.h. Line 368 in include/EASTL/bitset.h.

EA_DISABLE_VC_WARNING(6313)
template <size_t N, typename WordType>
inline bitset<N, WordType>::bitset(uint32_t value)
    : base_type(value)
{
    if((N & kBitsPerWordMask) || (N == 0)) // If there are any high bits to clear... (If we didn't have this check, then the code below would do the wrong thing when N == 32.
        mWord[kWordCount - 1] &= ~(static_cast<word_type>(~static_cast<word_type>(0)) << (N & kBitsPerWordMask)); // This clears any high unused bits.
}





Add Discussion as Guest

Log in