SI  2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
Public Types | List of all members
SI::detail::ratio_gcd< _ratio_lhs, _ratio_rhs > Struct Template Reference

calculate gcd for rations More...

#include <detail.h>

Public Types

using ratio = std::ratio< gcd_num::value,(_ratio_lhs::den/gcd_den::value) *_ratio_rhs::den >
 

Detailed Description

template<typename _ratio_lhs, typename _ratio_rhs>
struct SI::detail::ratio_gcd< _ratio_lhs, _ratio_rhs >

calculate gcd for rations

Member Typedef Documentation

◆ ratio

template<typename _ratio_lhs , typename _ratio_rhs >
using SI::detail::ratio_gcd< _ratio_lhs, _ratio_rhs >::ratio = std::ratio<gcd_num::value, (_ratio_lhs::den / gcd_den::value) * _ratio_rhs::den>

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