|
|
| Checked (const T value) |
|
| Checked (const Checked< T > &other)=default |
|
| Checked (Checked< T > &&other)=default |
|
Checked< T > & | operator= (const Checked< T > &other)=default |
|
std::strong_ordering | operator<=> (const Checked< T > &other) const =default |
|
std::strong_ordering | operator<=> (const T &other) const |
|
| operator T () const |
|
Result | operator+ (const Checked< T > other) const |
|
Result | operator+ (const T other) const |
|
Result | operator- (const Checked< T > other) const |
|
Result | operator- (const T other) const |
|
Result | operator* (const Checked< T > other) const |
|
Result | operator* (const T other) const |
|
Result | operator/ (const Checked< T > other) const |
| Result | operator/ (const T other) const |
template<std::integral T>
struct nix::checked::Checked< T >
Numeric value enforcing checked arithmetic. Performing mathematical operations on such values will return a Result type which needs to be checked.