]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc
3 // Copyright (C) 2007, 2009 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 3, or (at your option)
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
23 template<class T
> class complex;
24 template<> class complex<float>;
25 template<> class complex<double>;
26 template<> class complex<long double>;
30 complex<T
> operator+(const complex<T
>&, const complex<T
>&);
31 template<class T
> complex<T
> operator+(const complex<T
>&, const T
&);
32 template<class T
> complex<T
> operator+(const T
&, const complex<T
>&);
33 template<class T
> complex<T
> operator-
34 (const complex<T
>&, const complex<T
>&);
35 template<class T
> complex<T
> operator-(const complex<T
>&, const T
&);
36 template<class T
> complex<T
> operator-(const T
&, const complex<T
>&);
37 template<class T
> complex<T
> operator*
38 (const complex<T
>&, const complex<T
>&);
39 template<class T
> complex<T
> operator*(const complex<T
>&, const T
&);
40 template<class T
> complex<T
> operator*(const T
&, const complex<T
>&);
41 template<class T
> complex<T
> operator/
42 (const complex<T
>&, const complex<T
>&);
43 template<class T
> complex<T
> operator/(const complex<T
>&, const T
&);
44 template<class T
> complex<T
> operator/(const T
&, const complex<T
>&);
45 template<class T
> complex<T
> operator+(const complex<T
>&);
46 template<class T
> complex<T
> operator-(const complex<T
>&);
47 template<class T
> bool operator==
48 (const complex<T
>&, const complex<T
>&);
49 template<class T
> bool operator==(const complex<T
>&, const T
&);
50 template<class T
> bool operator==(const T
&, const complex<T
>&);
53 template<class T
> bool operator!=(const complex<T
>&, const complex<T
>&);
54 template<class T
> bool operator!=(const complex<T
>&, const T
&);
55 template<class T
> bool operator!=(const T
&, const complex<T
>&);
56 template<class T
, class charT
, class traits
>
57 basic_istream
<charT
, traits
>&
58 operator>>(basic_istream
<charT
, traits
>&, complex<T
>&);
59 template<class T
, class charT
, class traits
>
60 basic_ostream
<charT
, traits
>&
61 operator<<(basic_ostream
<charT
, traits
>&, const complex<T
>&);
64 template<class T
> T
real(const complex<T
>&);
65 template<class T
> T
imag(const complex<T
>&);
66 template<class T
> T
abs(const complex<T
>&);
67 template<class T
> T
arg(const complex<T
>&);
68 template<class T
> T
norm(const complex<T
>&);
69 template<class T
> complex<T
> conj(const complex<T
>&);
70 template<class T
> complex<T
> polar(const T
& rho
, const T
& theta
= 0);
72 // 26.2.8 transcendentals:
73 template<class T
> complex<T
> cos(const complex<T
>&);
74 template<class T
> complex<T
> cosh(const complex<T
>&);
75 template<class T
> complex<T
> exp(const complex<T
>&);
76 template<class T
> complex<T
> log(const complex<T
>&);
77 template<class T
> complex<T
> log10(const complex<T
>&);
78 template<class T
> complex<T
> pow(const complex<T
>&, int);
79 template<class T
> complex<T
> pow(const complex<T
>&, const T
&);
80 template<class T
> complex<T
> pow(const complex<T
>&, const complex<T
>&);
81 template<class T
> complex<T
> pow(const T
&, const complex<T
>&);
82 template<class T
> complex<T
> sin (const complex<T
>&);
83 template<class T
> complex<T
> sinh(const complex<T
>&);
84 template<class T
> complex<T
> sqrt(const complex<T
>&);
85 template<class T
> complex<T
> tan(const complex<T
>&);
86 template<class T
> complex<T
> tanh(const complex<T
>&);