Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
checked-arithmetic.hh File Reference
#include <compare>
#include <concepts>
#include <exception>
#include <ostream>
#include <limits>
#include <optional>
#include <type_traits>

Go to the source code of this file.

Classes

class  nix::checked::DivideByZero
 
struct  nix::checked::Checked< T >
 
class  nix::checked::Checked< T >::Result
 

Functions

template<std::integral T>
std::ostream & nix::checked::operator<< (std::ostream &ios, Checked< T > v)
 

Detailed Description

Checked arithmetic with classes that make it hard to accidentally make something an unchecked operation.