Function to_uint32
Synopsis
#include <include/EASTL/bitset.h>
uint32_t to_uint32() const
Description
No description yet.
Source
Lines 1266-1278 in include/EASTL/bitset.h. Line 201 in include/EASTL/bitset.h.
template <typename WordType>
inline uint32_t BitsetBase<1, WordType>::to_uint32() const
{
#if EASTL_EXCEPTIONS_ENABLED
#if(EA_PLATFORM_WORD_SIZE > 4) // If we are using 64 bit words...
// Verify that high bits are not set and thus that to_uint32 doesn't lose information.
if(mWord[0] >> 32)
throw std::overflow_error("BitsetBase::to_uint32");
#endif
#endif
return static_cast<uint32_t>(mWord[0]);
}