halcheck 1.0
Loading...
Searching...
No Matches
halcheck::lib::number Class Reference

A number is conceptually a signed integer with constant time equality comparison and hashing. More...

#include <atom.hpp>

Public Types

using value_type = std::int64_t
 The underlying integral type.
 

Public Member Functions

 number ()=default
 Creates a number with zero as its underlying value.
 
 number (value_type value)
 Creates a number with the given underlying value.
 
template<typename T >
 operator T () const
 Casts the underlying number to a value.
 
template<typename T >
 operator T () const
 Casts the underlying number to a value.
 

Friends

bool operator== (number lhs, number rhs)
 Determines if two numbers are equal.
 
bool operator!= (number lhs, number rhs)
 Determines if two numbers are equal.
 

Detailed Description

A number is conceptually a signed integer with constant time equality comparison and hashing.


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