Function to_uint64

Synopsis

#include <include/EASTL/bitset.h>

uint64_t to_uint64() const

Description

No description yet.

Source

Lines 1572-1587 in include/EASTL/bitset.h. Line 269 in include/EASTL/bitset.h.

template <typename WordType>
inline uint64_t BitsetBase<2, WordType>::to_uint64() const
{
    #if(EA_PLATFORM_WORD_SIZE == 4)
        // There can't possibly be an overflow_error here.
        return ((uint64_t)mWord[1] << 32) | mWord[0];
    #else
        #if EASTL_EXCEPTIONS_ENABLED
            if(mWord[1])
                throw std::overflow_error("BitsetBase::to_uint64");
        #endif
        return (uint64_t)mWord[0];
    #endif
}





Add Discussion as Guest

Log in