blob: 98a6c59b045bfeff8d2dea4c1ad21f44253518f9 (
plain) (
tree)
|
|
#ifndef RANDOM_T_HPP
#define RANDOM_T_HPP
namespace random_
{
struct Fraction
{
int num, den;
};
template<class T, T den>
struct Fixed
{
T num;
operator Fraction()
{
return {num, den};
}
};
} // namespace random_
#endif // RANDOM_T_HPP
|