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

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


Definitions

[[nodiscard]] friend constexpr xte::big_int<T> operator/(xte::big_int<T> lhs, const xte::big_int<T>& rhs) noexcept(false);
Computes the quotient of two big-integers. May throw if allocation fails or if rhs is zero.



Example

constexpr auto u64_max = 18446744073709551615ull;
static_assert((xte::big_int("340282366920938463426481119284349108225") / u64_max) == u64_max);
[View in Compiler Explorer]