Function set

Summary

#include <include/EASTL/bitset.h>

(1) void set()

(2) void set(size_type i, bool value)

Function overload

Synopsis

#include <include/EASTL/bitset.h>

void set()

Description

No description yet.

Source

Lines 1463-1469 in include/EASTL/bitset.h. Line 255 in include/EASTL/bitset.h.

template <typename WordType>
inline void BitsetBase<2, WordType>::set()
{
    mWord[0] = ~static_cast<word_type>(0);
    mWord[1] = ~static_cast<word_type>(0);
    // We let the parent class turn off any upper bits.
}

Synopsis

#include <include/EASTL/bitset.h>

void set(size_type i, bool value)

Description

No description yet.

Source

Lines 1472-1479 in include/EASTL/bitset.h. Line 256 in include/EASTL/bitset.h.

template <typename WordType>
inline void BitsetBase<2, WordType>::set(size_type i, bool value)
{
    if(value)
        mWord[i >> kBitsPerWordShift] |=  (static_cast<word_type>(1) << (i & kBitsPerWordMask));
    else
        mWord[i >> kBitsPerWordShift] &= ~(static_cast<word_type>(1) << (i & kBitsPerWordMask));
}





Add Discussion as Guest

Log in