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

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


Definitions

#0
template<xte::is_arithmetic T = U>
[[nodiscard]] explicit(!xte::is_int<U>)
constexpr big_int(U x = 0) noexcept(false);
Constructs from an integer or finite floating-point value.

#1
[[nodiscard]] explicit(false) constexpr big_int(const xte::big_int<T>&) noexcept(false) = default;

#2
[[nodiscard]] explicit(false) constexpr big_int(xte::big_int<T>&&) noexcept = default;
The moved-from big-integer is left in an unspecified state.

#3
template<typename U>
requires(!xte::is_same<T, U>)
[[nodiscard]] explicit constexpr big_int(const xte::big_int<U>& other) noexcept(false);
Constructs from another big-integer which stores chunks of a different type.

#4
template<typename Range = xte::array<T>>
[[nodiscard]] constexpr big_int(std::from_range_t, Range&& range, bool neg = false) XTE_ARROW_CTOR(/* ... */)
Copies qualifiers from Range onto its element type. Requires that T is constructible from the element type of the given range.

#5
template<xte::is_int Radix = xte::uz>
[[nodiscard]] explicit constexpr big_int(xte::string_view string, Radix radix = 10, const xte::number_format_config& config = {}) noexcept(false);
Constructs from a string representation of an integer.



Example

static_assert(xte::big_int("FF", 16) == 255);
[View in Compiler Explorer]