Changeset 4e68727 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:18Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4082567
Parents:
ee906a6
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-11-23 23:15:01)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
Message:

cpp: added lowest to the integral numeric_limits

File:
1 edited

Legend:

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

    ree906a6 r4e68727  
    359359                return INT8_MIN;
    360360            }
     361
     362            static constexpr int8_t lowest()
     363            {
     364                return min();
     365            }
    361366    };
    362367
     
    376381                return INT16_MIN;
    377382            }
     383
     384            static constexpr int16_t lowest()
     385            {
     386                return min();
     387            }
    378388    };
    379389
     
    393403                return INT32_MIN;
    394404            }
     405
     406            static constexpr int32_t lowest()
     407            {
     408                return min();
     409            }
    395410    };
    396411
     
    410425                return INT64_MIN;
    411426            }
     427
     428            static constexpr int64_t lowest()
     429            {
     430                return min();
     431            }
    412432    };
    413433
     
    427447                return UINT8_MIN;
    428448            }
     449
     450            static constexpr uint8_t lowest()
     451            {
     452                return min();
     453            }
    429454    };
    430455
     
    444469                return UINT16_MIN;
    445470            }
     471
     472            static constexpr uint16_t lowest()
     473            {
     474                return min();
     475            }
    446476    };
    447477
     
    461491                return UINT32_MIN;
    462492            }
     493
     494            static constexpr uint32_t lowest()
     495            {
     496                return min();
     497            }
    463498    };
    464499
     
    478513                return UINT64_MIN;
    479514            }
     515
     516            static constexpr uint64_t lowest()
     517            {
     518                return min();
     519            }
    480520    };
    481521
Note: See TracChangeset for help on using the changeset viewer.