Function to_ulong

Synopsis

#include <include/EASTL/bitset.h>

unsigned long to_ulong() const

Description

No description yet.

Source

Lines 1542-1550 in include/EASTL/bitset.h. Line 267 in include/EASTL/bitset.h.

template <typename WordType>
inline unsigned long BitsetBase<2, WordType>::to_ulong() const
{
    #if EASTL_EXCEPTIONS_ENABLED
        if(mWord[1])
            throw std::overflow_error("BitsetBase::to_ulong");
    #endif
    return (unsigned long)mWord[0]; // Todo: We need to deal with the case whereby sizeof(word_type) < sizeof(unsigned long)
}





Add Discussion as Guest

Log in