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 1172-1177 in include/EASTL/bitset.h. Line 188 in include/EASTL/bitset.h.

template <typename WordType>
inline void BitsetBase<1, WordType>::set()
{
    mWord[0] = static_cast<word_type>(~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 1180-1187 in include/EASTL/bitset.h. Line 189 in include/EASTL/bitset.h.

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





Add Discussion as Guest

Log in