Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::checked::Checked< T >::Result Class Reference

Public Member Functions

 Result (T value, bool overflowed)
 Result (T value, OverflowKind overflowed)
bool operator== (Result other) const
std::optional< T > valueChecked () const
valueWrapping () const
bool overflowed () const
bool divideByZero () const

Member Function Documentation

◆ valueWrapping()

template<std::integral T>
T nix::checked::Checked< T >::Result::valueWrapping ( ) const
inline

Returns the result as if the arithmetic were performed as wrapping arithmetic.

Exceptions
DivideByZeroif the operation was a divide by zero.

The documentation for this class was generated from the following file: