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

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


Definitions

#0
constexpr xte::big_int<T>& operator--() & noexcept(false);
Decrements the big-integer by one. May throw if allocation fails.

#1
constexpr xte::big_int<T> operator--(int) & noexcept(false);
Decrements the big-integer by one, and returns the previous value. May throw if allocation fails.



Example

xte::big_int n = -9223372036854775807 - 1;
--n;
std::println("{}", n);
Output:
-9223372036854775809
[View in Compiler Explorer]