aimstil
5.0.5
|
A class to divide one number by another. More...
#include <cathier/fraction.h>
Public Member Functions | |
Fraction () | |
Fraction (ZeroByZeroPolicy p) | |
T | operator() (T nom, T denom) |
Returns nom / denom. The 0/0 case is handled by the policy. More... | |
A class to divide one number by another.
The behavior to follow in case of a zero / zero is given by a template policy.
Definition at line 26 of file fraction.h.
|
inline |
Definition at line 29 of file fraction.h.
|
inline |
Definition at line 30 of file fraction.h.
References til::fraction(), and til::Fraction< T, ZeroByZeroPolicy >::operator()().
T til::Fraction< T, ZeroByZeroPolicy >::operator() | ( | T | nom, |
T | denom | ||
) |
Returns nom / denom. The 0/0 case is handled by the policy.
Referenced by til::Fraction< T, ZeroByZeroPolicy >::Fraction().