1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10module; 11#include <ratio> 12 13export module std:ratio; 14export namespace std { 15 // [ratio.ratio], class template ratio 16 using std::ratio; 17 18 // [ratio.arithmetic], ratio arithmetic 19 using std::ratio_add; 20 using std::ratio_divide; 21 using std::ratio_multiply; 22 using std::ratio_subtract; 23 24 // [ratio.comparison], ratio comparison 25 using std::ratio_equal; 26 using std::ratio_greater; 27 using std::ratio_greater_equal; 28 using std::ratio_less; 29 using std::ratio_less_equal; 30 using std::ratio_not_equal; 31 32 using std::ratio_equal_v; 33 using std::ratio_greater_equal_v; 34 using std::ratio_greater_v; 35 using std::ratio_less_equal_v; 36 using std::ratio_less_v; 37 using std::ratio_not_equal_v; 38 39 // [ratio.si], convenience SI typedefs 40 using std::atto; 41 using std::centi; 42 using std::deca; 43 using std::deci; 44 using std::exa; 45 using std::femto; 46 using std::giga; 47 using std::hecto; 48 using std::kilo; 49 using std::mega; 50 using std::micro; 51 using std::milli; 52 using std::nano; 53 using std::peta; 54 using std::pico; 55 using std::tera; 56 57 // These are not supported by libc++, due to the range of intmax_t 58 // using std::yocto; 59 // using std::yotta; 60 // using std::zepto; 61 // using std::zetta 62} // namespace std 63