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

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


Definitions

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

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



Example

xte::big_int n = 18446744073709551615ull;
++n;
std::println("{}", n);
Output:
18446744073709551616
[View in Compiler Explorer]