xref: /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/wstring-io-inst.cc (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1d79abf08Smrg // SSO string instantiations for I/O -*- C++ -*-
2d79abf08Smrg 
3*b1e83836Smrg // Copyright (C) 1997-2022 Free Software Foundation, Inc.
4d79abf08Smrg //
5d79abf08Smrg // This file is part of the GNU ISO C++ Library.  This library is free
6d79abf08Smrg // software; you can redistribute it and/or modify it under the
7d79abf08Smrg // terms of the GNU General Public License as published by the
8d79abf08Smrg // Free Software Foundation; either version 3, or (at your option)
9d79abf08Smrg // any later version.
10d79abf08Smrg 
11d79abf08Smrg // This library is distributed in the hope that it will be useful,
12d79abf08Smrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
13d79abf08Smrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14d79abf08Smrg // GNU General Public License for more details.
15d79abf08Smrg 
16d79abf08Smrg // Under Section 7 of GPL version 3, you are granted additional
17d79abf08Smrg // permissions described in the GCC Runtime Library Exception, version
18d79abf08Smrg // 3.1, as published by the Free Software Foundation.
19d79abf08Smrg 
20d79abf08Smrg // You should have received a copy of the GNU General Public License and
21d79abf08Smrg // a copy of the GCC Runtime Library Exception along with this program;
22d79abf08Smrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23d79abf08Smrg // <http://www.gnu.org/licenses/>.
24d79abf08Smrg 
25d79abf08Smrg //
26d79abf08Smrg // ISO C++ 14882:
27d79abf08Smrg //
28d79abf08Smrg 
29d79abf08Smrg #define _GLIBCXX_USE_CXX11_ABI 1
30d79abf08Smrg #include <string>
31d79abf08Smrg #include <istream>
32d79abf08Smrg #include <ostream>
33d79abf08Smrg 
34d79abf08Smrg namespace std _GLIBCXX_VISIBILITY(default)
35d79abf08Smrg {
36d79abf08Smrg _GLIBCXX_BEGIN_NAMESPACE_VERSION
37d79abf08Smrg 
38d79abf08Smrg   // string related to iostreams
39d79abf08Smrg #ifdef _GLIBCXX_USE_WCHAR_T
40d79abf08Smrg   template
41d79abf08Smrg     basic_istream<wchar_t>&
42d79abf08Smrg     operator>>(basic_istream<wchar_t>&, wstring&);
43d79abf08Smrg   template
44d79abf08Smrg     basic_ostream<wchar_t>&
45d79abf08Smrg     operator<<(basic_ostream<wchar_t>&, const wstring&);
46d79abf08Smrg   template
47d79abf08Smrg     basic_istream<wchar_t>&
48d79abf08Smrg     getline(basic_istream<wchar_t>&, wstring&, wchar_t);
49d79abf08Smrg   template
50d79abf08Smrg     basic_istream<wchar_t>&
51d79abf08Smrg     getline(basic_istream<wchar_t>&, wstring&);
52d79abf08Smrg #endif
53d79abf08Smrg 
54d79abf08Smrg _GLIBCXX_END_NAMESPACE_VERSION
55d79abf08Smrg } // namespace
56