Changeset 91ac0bb in mainline


Ignore:
Timestamp:
2018-07-05T21:41:24Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4960254
Parents:
7452b155
git-author:
Dzejrou <dzejrou@…> (2018-05-17 18:39:49)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: added c++17 style aliases to ratio relational operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/ratio.hpp

    r7452b155 r91ac0bb  
    138138
    139139    template<class R1, class R2>
     140    inline constexpr bool ratio_equal_v = ratio_equal<R1, R2>::value;
     141
     142    template<class R1, class R2>
    140143    struct ratio_not_equal: integral_constant<bool, !ratio_equal<R1, R2>::value>
    141144    { /* DUMMY BODY */ };
     145
     146    template<class R1, class R2>
     147    inline constexpr bool ratio_not_equal_v = ratio_not_equal<R1, R2>::value;
    142148
    143149    template<class R1, class R2>
     
    148154
    149155    template<class R1, class R2>
     156    inline constexpr bool ratio_less_v = ratio_less<R1, R2>::value;
     157
     158    template<class R1, class R2>
    150159    struct ratio_less_equal: integral_constant<bool, !ratio_less<R2, R1>::value>
    151160    { /* DUMMY BODY */ };
    152161
    153162    template<class R1, class R2>
     163    inline constexpr bool ratio_less_equal_v = ratio_less_equal<R1, R2>::value;
     164
     165    template<class R1, class R2>
    154166    struct ratio_greater: integral_constant<bool, ratio_less<R2, R1>::value>
    155167    { /* DUMMY BODY */ };
    156168
    157169    template<class R1, class R2>
     170    inline constexpr bool ratio_greater_v = ratio_greater<R1, R2>::value;
     171
     172    template<class R1, class R2>
    158173    struct ratio_greater_equal: integral_constant<bool, !ratio_less<R1, R2>::value>
    159174    { /* DUMMY BODY */ };
     175
     176    template<class R1, class R2>
     177    inline constexpr bool ratio_greater_equal_v = ratio_greater_equal<R1, R2>::value;
    160178
    161179    /**
Note: See TracChangeset for help on using the changeset viewer.