tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio_equal< R1, R2 > Struct Template Reference

Compares two ratio objects for equality at compile-time. If the ratios R1 and R2 are equal, provides the member constant value equal true. Otherwise, value is false. More...

#include <ratio_equal.hpp>

Inheritance diagram for ratio_equal< R1, R2 >:
integral_constant< bool, B >

Related Symbols

(Note that these are not member symbols.)

template<typename R1, typename R2>
constexpr bool ratio_equal_v = ratio_equal<R1, R2>::value
 

Additional Inherited Members

- Public Types inherited from integral_constant< bool, B >
using type
 
using type
 
using value_type
 
using value_type
 
- Public Member Functions inherited from integral_constant< bool, B >
constexpr operator value_type () const noexcept
 
constexpr operator value_type () const noexcept
 
constexpr auto operator() () const noexcept -> value_type
 
constexpr auto operator() () const noexcept -> value_type
 
- Static Public Attributes inherited from integral_constant< bool, B >
static constexpr bool value
 
static constexpr bool value
 

Detailed Description

template<typename R1, typename R2>
struct etl::ratio_equal< R1, R2 >

Compares two ratio objects for equality at compile-time. If the ratios R1 and R2 are equal, provides the member constant value equal true. Otherwise, value is false.


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