xte::big_int<T>::operator typename()

Defined in header <xte/math/big_int.hpp>


Definitions

#0
template<xte::is_arithmetic U>
[[nodiscard]] explicit constexpr operator U() const noexcept;
Casts to an arithmetic type. Prevents undefined behavior from signed integer wrapping.

#1
[[nodiscard]] explicit constexpr operator bool() const noexcept;
Returns false if the big-integer is zero, otherwise true.



Example

static_assert(static_cast<int>(xte::big_int(123)) == 123);
[View in Compiler Explorer]