Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5134 serge 1
// The template and inlines for the -*- C++ -*- complex number classes.
2
 
3
// Copyright (C) 2000-2013 Free Software Foundation, Inc.
4
//
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)
9
// any later version.
10
 
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.
15
 
16
// Under Section 7 of GPL version 3, you are granted additional
17
// permissions described in the GCC Runtime Library Exception, version
18
// 3.1, as published by the Free Software Foundation.
19
 
20
// You should have received a copy of the GNU General Public License and
21
// a copy of the GCC Runtime Library Exception along with this program;
22
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23
// .
24
 
25
#include 
26
 
27
namespace std _GLIBCXX_VISIBILITY(default)
28
{
29
_GLIBCXX_BEGIN_NAMESPACE_VERSION
30
 
31
  template
32
    basic_istream >&
33
    operator>>(basic_istream >&, complex&);
34
 
35
  template
36
    basic_ostream >&
37
    operator<<(basic_ostream >&,
38
	       const complex&);
39
 
40
  template
41
    basic_istream >&
42
    operator>>(basic_istream >&, complex&);
43
 
44
  template
45
    basic_ostream >&
46
    operator<<(basic_ostream >&,
47
	       const complex&);
48
 
49
  template
50
    basic_istream >&
51
    operator>>(basic_istream >&,
52
	       complex&);
53
 
54
  template
55
    basic_ostream >&
56
    operator<<(basic_ostream >&,
57
               const complex&);
58
 
59
#ifdef _GLIBCXX_USE_WCHAR_T
60
  template
61
    basic_istream >&
62
    operator>>(basic_istream >&,
63
               complex&);
64
 
65
  template
66
    basic_ostream >&
67
    operator<<(basic_ostream >&,
68
               const complex&);
69
 
70
  template
71
    basic_istream >&
72
    operator>>(basic_istream >&,
73
               complex&);
74
 
75
  template
76
    basic_ostream >&
77
    operator<<(basic_ostream >&,
78
               const complex&);
79
 
80
  template
81
    basic_istream >&
82
    operator>>(basic_istream >&,
83
               complex&);
84
 
85
  template
86
    basic_ostream >&
87
    operator<<(basic_ostream >&,
88
               const complex&);
89
#endif //_GLIBCXX_USE_WCHAR_T
90
 
91
_GLIBCXX_END_NAMESPACE_VERSION
92
} // namespace
93
 
94
// XXX GLIBCXX_ABI Deprecated
95
#ifdef _GLIBCXX_LONG_DOUBLE_COMPAT
96
 
97
#define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \
98
  extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak))
99
 
100
_GLIBCXX_LDBL_COMPAT (_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E,
101
		      _ZStlsIecSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E);
102
#ifdef _GLIBCXX_USE_WCHAR_T
103
_GLIBCXX_LDBL_COMPAT (_ZStlsIdwSt11char_traitsIwEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E,
104
		      _ZStlsIewSt11char_traitsIwEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E);
105
#endif
106
_GLIBCXX_LDBL_COMPAT (_ZStrsIdcSt11char_traitsIcEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E,
107
		      _ZStrsIecSt11char_traitsIcEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E);
108
#ifdef _GLIBCXX_USE_WCHAR_T
109
_GLIBCXX_LDBL_COMPAT (_ZStrsIdwSt11char_traitsIwEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E,
110
		      _ZStrsIewSt11char_traitsIwEERSt13basic_istreamIT0_T1_ES6_RSt7complexIT_E);
111
#endif
112
 
113
#endif // _GLIBCXX_LONG_DOUBLE_COMPAT