xte ::big_int <T >::operator+ ()
Defined in header <xte/math/big_int.hpp> Definitions
#0Returns the object unchanged.[[nodiscard ]]constexpr auto&& operator+ (this auto&& )noexcept ;
#1
Computes the sum of two big-integers. May throw if allocation fails.[[nodiscard ]]friend constexpr xte ::big_int <T >operator+ (xte ::big_int <T >lhs ,const xte ::big_int <T >& rhs )noexcept (false );
#2
Computes the sum of two big-integers.[[nodiscard ]]friend constexpr xte ::big_int <T >operator+ (xte ::big_int <T >lhs ,xte ::big_int <T >&& rhs )noexcept (false );
lhs is destructively moved-from. May throw if allocation fails.Example
[View in Compiler Explorer]constexpr auto u64_max =18446744073709551615ull ;static_assert ((xte ::big_int (u64_max ) +u64_max ).str () =="36893488147419103230" );