|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Strong type for a Rational numerator. More...
#include <rational.hpp>
Public Member Functions | |
| constexpr | Numerator (std::int64_t raw) noexcept |
| Explicit so the type must be spelled out. | |
Public Attributes | |
| std::int64_t | value {} |
| Raw signed integer value. | |
Strong type for a Rational numerator.
Prevents numerator/denominator argument swapping at construction sites.
Definition at line 140 of file rational.hpp.
|
inlineexplicitconstexprnoexcept |
Explicit so the type must be spelled out.
| raw | The integer to box as a numerator. |
Definition at line 148 of file rational.hpp.
| std::int64_t morph::math::Numerator::value {} |
Raw signed integer value.
Definition at line 142 of file rational.hpp.