xref: /aosp_15_r20/external/cronet/third_party/libc++/src/modules/std/complex.cppm (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 <complex>
12
13export module std:complex;
14export namespace std {
15
16  // [complex], class template complex
17  using std::complex;
18
19  // [complex.ops], operators
20  using std::operator+;
21  using std::operator-;
22  using std::operator*;
23  using std::operator/;
24
25  using std::operator==;
26  using std::operator>>;
27  using std::operator<<;
28
29  // [complex.value.ops], values
30  using std::imag;
31  using std::real;
32
33  using std::abs;
34  using std::arg;
35  using std::norm;
36
37  using std::conj;
38  using std::polar;
39  using std::proj;
40
41  // [complex.transcendentals], transcendentals
42  using std::acos;
43  using std::asin;
44  using std::atan;
45
46  using std::acosh;
47  using std::asinh;
48  using std::atanh;
49
50  using std::cos;
51  using std::cosh;
52  using std::exp;
53  using std::log;
54  using std::log10;
55
56  using std::pow;
57
58  using std::sin;
59  using std::sinh;
60  using std::sqrt;
61  using std::tan;
62  using std::tanh;
63
64  // [complex.literals], complex literals
65  inline namespace literals {
66    inline namespace complex_literals {
67      using std::operator""il;
68      using std::operator""i;
69      using std::operator""if;
70    } // namespace complex_literals
71  }   // namespace literals
72
73} // namespace std
74