# complex_io.cc

    00001 // The template and inlines for the -*- C++ -*- complex number classes.
    00002
    00003 // Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    00004 //
    00005 // This file is part of the GNU ISO C++ Library.  This library is free
    00006 // software; you can redistribute it and/or modify it under the
    00007 // terms of the GNU General Public License as published by the
    00008 // Free Software Foundation; either version 2, or (at your option)
    00009 // any later version.
    00010
    00011 // This library is distributed in the hope that it will be useful,
    00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00014 // GNU General Public License for more details.
    00015
    00016 // You should have received a copy of the GNU General Public License along
    00017 // with this library; see the file COPYING.  If not, write to the Free
    00018 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
    00019 // USA.
    00020
    00021 // As a special exception, you may use this file as part of a free software
    00022 // library without restriction.  Specifically, if other files instantiate
    00023 // templates or use macros or inline functions from this file, or you compile
    00024 // this file and link it with other files to produce an executable, this
    00025 // file does not by itself cause the resulting executable to be covered by
    00026 // the GNU General Public License.  This exception does not however
    00027 // invalidate any other reasons why the executable file might be covered by
    00028 // the GNU General Public License.
    00029
    00030 #include <complex>
    00031
    00032 namespace std
    00033 {
    00034   template
    00035     basic_istream<char, char_traits<char> >&
    00036     operator>>(basic_istream<char, char_traits<char> >&, complex<float>&);
    00037
    00038   template
    00039     basic_ostream<char, char_traits<char> >&
    00040     operator<<(basic_ostream<char, char_traits<char> >&,
    00041            const complex<float>&);
    00042
    00043   template
    00044     basic_istream<char, char_traits<char> >&
    00045     operator>>(basic_istream<char, char_traits<char> >&, complex<double>&);
    00046
    00047   template
    00048     basic_ostream<char, char_traits<char> >&
    00049     operator<<(basic_ostream<char, char_traits<char> >&,
    00050            const complex<double>&);
    00051
    00052   template
    00053     basic_istream<char, char_traits<char> >&
    00054     operator>>(basic_istream<char, char_traits<char> >&,
    00055            complex<long double>&);
    00056
    00057   template
    00058     basic_ostream<char, char_traits<char> >&
    00059     operator<<(basic_ostream<char, char_traits<char> >&,
    00060                const complex<long double>&);
    00061
    00062 #ifdef _GLIBCPP_USE_WCHAR_T
    00063   template
    00064     basic_istream<wchar_t, char_traits<wchar_t> >&
    00065     operator>>(basic_istream<wchar_t, char_traits<wchar_t> >&,
    00066                complex<float>&);
    00067
    00068   template
    00069     basic_ostream<wchar_t, char_traits<wchar_t> >&
    00070     operator<<(basic_ostream<wchar_t, char_traits<wchar_t> >&,
    00071                const complex<float>&);
    00072
    00073   template
    00074     basic_istream<wchar_t, char_traits<wchar_t> >&
    00075     operator>>(basic_istream<wchar_t, char_traits<wchar_t> >&,
    00076                complex<double>&);
    00077
    00078   template
    00079     basic_ostream<wchar_t, char_traits<wchar_t> >&
    00080     operator<<(basic_ostream<wchar_t, char_traits<wchar_t> >&,
    00081                const complex<double>&);
    00082
    00083   template
    00084     basic_istream<wchar_t, char_traits<wchar_t> >&
    00085     operator>>(basic_istream<wchar_t, char_traits<wchar_t> >&,
    00086                complex<long double>&);
    00087
    00088   template
    00089     basic_ostream<wchar_t, char_traits<wchar_t> >&
    00090     operator<<(basic_ostream<wchar_t, char_traits<wchar_t> >&,
    00091                const complex<long double>&);
    00092 #endif //_GLIBCPP_USE_WCHAR_T
    00093 } // namespace std