Документация
ОС Аврора 5.2.1

Структура Fraction<T>

Публичные функции

bool isValid () const
constexpr Fraction (const T &n, const T &d=1)
void reduce ()
Fraction & operator= (const T &n)
operator bool () const
operator int () const
operator unsigned int () const
bool operator== (const Fraction &o) const
bool operator!= (const Fraction &o) const
bool operator< (const Fraction &o) const
bool operator> (const Fraction &o) const
bool operator<= (const Fraction &o) const
bool operator>= (const Fraction &o) const
const Fraction & operator- () const
const Fraction & operator+ () const
const Fraction & operator+= (const Fraction &o)
const Fraction & operator-= (const Fraction &o)
const Fraction & operator=* (const Fraction &o)
const Fraction & operator/= (const Fraction &o)
const Fraction & operator%= (const Fraction &o)

Статические публичные функции

static Fraction normalize (const Fraction &o)

Публичные атрибуты

T numerator {}
T denominator

Мы используем cookies для персонализации сайта и его более удобного использования. Вы можете запретить cookies в настройках браузера.

Пожалуйста ознакомьтесь с политикой использования cookies.