xte ::big_int <T >::big_int ()
Defined in header <xte/math/big_int.hpp> Definitions
#0Constructs from an integer or finite floating-point value.template <xte ::is_arithmetic T =U > [[nodiscard ]]explicit (!xte ::is_int <U >)constexpr big_int (U x =0 )noexcept (false );
#1
[[nodiscard ]]explicit (false )constexpr big_int (const xte ::big_int <T >& )noexcept (false ) =default ;
#2
The moved-from big-integer is left in an unspecified state.[[nodiscard ]]explicit (false )constexpr big_int (xte ::big_int <T >&& )noexcept =default ;
#3
Constructs from another big-integer which stores chunks of a different type.template <typename U >requires (!xte ::is_same <T ,U >) [[nodiscard ]]explicit constexpr big_int (const xte ::big_int <U >& other )noexcept (false );
#4
Copies qualifiers fromtemplate <typename Range =xte ::array <T >> [[nodiscard ]]constexpr big_int (std ::from_range_t ,Range && range ,bool neg =false )XTE_ARROW_CTOR (/* ... */ )
Range onto its element type. Requires that T is constructible from the element type of the given range.#5
Constructs from a string representation of an integer.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 );
Example
[View in Compiler Explorer]static_assert (xte ::big_int ("FF" ,16 ) ==255 );