Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::ratio_detail::ratio_multiply_impl< R1, R2 > Class Template Reference

A helper for multiplication to enforce the type requirement in [ratio.general] and improve readability. More...

Public Types

using type = ratio<(R1::num / gcd_12) * (R2::num / gcd_21), (R1::den / gcd_21) * (R2::den / gcd_12)>
 The result of the multiplication.
 

Detailed Description

template<class R1, class R2>
class std::ratio_detail::ratio_multiply_impl< R1, R2 >

A helper for multiplication to enforce the type requirement in [ratio.general] and improve readability.

Template Parameters
R1The first of two ratios to be multiplied
R2The second of two ratios to be multiplied

Member Typedef Documentation

◆ type

template<class R1, class R2>
using std::ratio_detail::ratio_multiply_impl< R1, R2 >::type = ratio<(R1::num / gcd_12) * (R2::num / gcd_21), (R1::den / gcd_21) * (R2::den / gcd_12)>

The result of the multiplication.


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