2000-10-05 19:27:02 +08:00
|
|
|
// Stream buffer classes -*- C++ -*-
|
|
|
|
|
2003-02-14 05:39:03 +08:00
|
|
|
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
2002-02-01 11:20:39 +08:00
|
|
|
// Free Software Foundation, Inc.
|
2000-10-05 19:27:02 +08:00
|
|
|
//
|
|
|
|
// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
// software; you can redistribute it and/or modify it under the
|
|
|
|
// terms of the GNU General Public License as published by the
|
|
|
|
// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
// USA.
|
|
|
|
|
|
|
|
// As a special exception, you may use this file as part of a free software
|
|
|
|
// library without restriction. Specifically, if other files instantiate
|
|
|
|
// templates or use macros or inline functions from this file, or you compile
|
|
|
|
// this file and link it with other files to produce an executable, this
|
|
|
|
// file does not by itself cause the resulting executable to be covered by
|
|
|
|
// the GNU General Public License. This exception does not however
|
|
|
|
// invalidate any other reasons why the executable file might be covered by
|
|
|
|
// the GNU General Public License.
|
|
|
|
|
|
|
|
//
|
|
|
|
// ISO C++ 14882: 27.5 Stream buffers
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _CPP_BITS_STREAMBUF_TCC
|
|
|
|
#define _CPP_BITS_STREAMBUF_TCC 1
|
|
|
|
|
2002-02-17 03:33:43 +08:00
|
|
|
#pragma GCC system_header
|
|
|
|
|
2002-02-01 11:20:39 +08:00
|
|
|
namespace std
|
|
|
|
{
|
2002-04-16 08:45:36 +08:00
|
|
|
template<typename _CharT, typename _Traits>
|
2001-07-20 08:09:31 +08:00
|
|
|
typename basic_streambuf<_CharT, _Traits>::int_type
|
2000-10-05 19:27:02 +08:00
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
sbumpc()
|
|
|
|
{
|
|
|
|
int_type __ret;
|
According to 5.9 para 2 (second bullet) for pointers p...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
2003-04-18 21:55:22 +08:00
|
|
|
if (_M_in_cur < _M_in_end)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-04-22 05:44:44 +08:00
|
|
|
char_type __c = *this->_M_in_cur;
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_in_cur(1);
|
2000-10-05 19:27:02 +08:00
|
|
|
__ret = traits_type::to_int_type(__c);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
__ret = this->uflow();
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _CharT, typename _Traits>
|
2001-07-20 08:09:31 +08:00
|
|
|
typename basic_streambuf<_CharT, _Traits>::int_type
|
2000-10-05 19:27:02 +08:00
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
sputbackc(char_type __c)
|
|
|
|
{
|
|
|
|
int_type __ret;
|
According to 5.9 para 2 (second bullet) for pointers p...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
2003-04-18 21:55:22 +08:00
|
|
|
const bool __testpos = _M_in_beg < _M_in_cur;
|
2003-04-22 05:44:44 +08:00
|
|
|
if (!__testpos || !traits_type::eq(__c, this->_M_in_cur[-1]))
|
2002-11-21 15:27:51 +08:00
|
|
|
__ret = this->pbackfail(traits_type::to_int_type(__c));
|
2000-10-05 19:27:02 +08:00
|
|
|
else
|
|
|
|
{
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_in_cur(-1);
|
2003-04-22 05:44:44 +08:00
|
|
|
__ret = traits_type::to_int_type(*this->_M_in_cur);
|
2000-10-05 19:27:02 +08:00
|
|
|
}
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _CharT, typename _Traits>
|
2001-07-20 08:09:31 +08:00
|
|
|
typename basic_streambuf<_CharT, _Traits>::int_type
|
2000-10-05 19:27:02 +08:00
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
sungetc()
|
|
|
|
{
|
|
|
|
int_type __ret;
|
According to 5.9 para 2 (second bullet) for pointers p...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
2003-04-18 21:55:22 +08:00
|
|
|
if (_M_in_beg < _M_in_cur)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_in_cur(-1);
|
2000-10-05 19:27:02 +08:00
|
|
|
__ret = traits_type::to_int_type(*_M_in_cur);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
__ret = this->pbackfail();
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _CharT, typename _Traits>
|
2001-07-20 08:09:31 +08:00
|
|
|
typename basic_streambuf<_CharT, _Traits>::int_type
|
2000-10-05 19:27:02 +08:00
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
sputc(char_type __c)
|
|
|
|
{
|
|
|
|
int_type __ret;
|
According to 5.9 para 2 (second bullet) for pointers p...
2003-04-18 Paolo Carlini <pcarlini@unitus.it>
According to 5.9 para 2 (second bullet) for pointers p, q
pointing to the same type, with p == 0 and q == 0, (p < q)
is false.
* include/bits/fstream.tcc (close, overflow, _M_really_overflow,
seekoff): Remove redundant NULL pointer checks from tests
involving _M_out_* and _M_in_*, const qualify bool variables.
(showmanyc, pbackfail, _M_convert_to_external, imbue): Const
qualify bool variables.
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
Remove redundant NULL pointer checks from tests involving
_M_out_* and _M_in_*, const qualify bool variables.
* include/std/std_fstream.h (sync): Likewise.
(_M_is_indeterminate): Const qualify bool variables.
* include/std/std_streambuf.h (sgetc, uflow): Remove redundant
NULL pointer checks from tests involving _M_out_* and _M_in_*,
const qualify bool variables.
(_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
variables.
From-SVN: r65783
2003-04-18 21:55:22 +08:00
|
|
|
if (_M_out_cur < _M_out_end)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
|
|
|
*_M_out_cur = __c;
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_out_cur(1);
|
2000-10-05 19:27:02 +08:00
|
|
|
__ret = traits_type::to_int_type(__c);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
__ret = this->overflow(traits_type::to_int_type(__c));
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _CharT, typename _Traits>
|
|
|
|
streamsize
|
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
xsgetn(char_type* __s, streamsize __n)
|
|
|
|
{
|
|
|
|
streamsize __ret = 0;
|
2001-01-16 15:55:26 +08:00
|
|
|
while (__ret < __n)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-05-02 00:45:50 +08:00
|
|
|
const size_t __buf_len = _M_in_end - _M_in_cur;
|
2003-05-26 22:54:42 +08:00
|
|
|
if (__buf_len)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-05-02 00:45:50 +08:00
|
|
|
const size_t __remaining = __n - __ret;
|
|
|
|
const size_t __len = std::min(__buf_len, __remaining);
|
2001-01-16 15:55:26 +08:00
|
|
|
traits_type::copy(__s, _M_in_cur, __len);
|
|
|
|
__ret += __len;
|
|
|
|
__s += __len;
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_in_cur(__len);
|
2001-01-16 15:55:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (__ret < __n)
|
|
|
|
{
|
2003-05-02 00:45:50 +08:00
|
|
|
const int_type __c = this->uflow();
|
2002-07-04 17:20:01 +08:00
|
|
|
if (!traits_type::eq_int_type(__c, traits_type::eof()))
|
2001-03-27 11:48:17 +08:00
|
|
|
{
|
|
|
|
traits_type::assign(*__s++, traits_type::to_char_type(__c));
|
|
|
|
++__ret;
|
|
|
|
}
|
|
|
|
else
|
2001-01-16 15:55:26 +08:00
|
|
|
break;
|
2000-10-05 19:27:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename _CharT, typename _Traits>
|
|
|
|
streamsize
|
|
|
|
basic_streambuf<_CharT, _Traits>::
|
|
|
|
xsputn(const char_type* __s, streamsize __n)
|
|
|
|
{
|
|
|
|
streamsize __ret = 0;
|
2001-01-16 15:55:26 +08:00
|
|
|
while (__ret < __n)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-05-02 00:45:50 +08:00
|
|
|
const size_t __buf_len = _M_out_end - _M_out_cur;
|
2003-05-26 22:54:42 +08:00
|
|
|
if (__buf_len)
|
2000-10-05 19:27:02 +08:00
|
|
|
{
|
2003-05-02 00:45:50 +08:00
|
|
|
const size_t __remaining = __n - __ret;
|
|
|
|
const size_t __len = std::min(__buf_len, __remaining);
|
2001-01-16 15:55:26 +08:00
|
|
|
traits_type::copy(_M_out_cur, __s, __len);
|
|
|
|
__ret += __len;
|
|
|
|
__s += __len;
|
2003-04-28 12:54:54 +08:00
|
|
|
_M_move_out_cur(__len);
|
2001-01-16 15:55:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (__ret < __n)
|
|
|
|
{
|
2003-05-26 22:54:42 +08:00
|
|
|
int_type __c = this->overflow(traits_type::to_int_type(*__s));
|
2002-07-04 17:20:01 +08:00
|
|
|
if (!traits_type::eq_int_type(__c, traits_type::eof()))
|
2001-03-27 11:48:17 +08:00
|
|
|
{
|
|
|
|
++__ret;
|
|
|
|
++__s;
|
|
|
|
}
|
|
|
|
else
|
2001-01-16 15:55:26 +08:00
|
|
|
break;
|
2000-10-05 19:27:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return __ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Conceivably, this could be used to implement buffer-to-buffer
|
|
|
|
// copies, if this was ever desired in an un-ambiguous way by the
|
|
|
|
// standard. If so, then checks for __ios being zero would be
|
|
|
|
// necessary.
|
|
|
|
template<typename _CharT, typename _Traits>
|
|
|
|
streamsize
|
2001-02-07 09:54:21 +08:00
|
|
|
__copy_streambufs(basic_ios<_CharT, _Traits>& __ios,
|
|
|
|
basic_streambuf<_CharT, _Traits>* __sbin,
|
|
|
|
basic_streambuf<_CharT, _Traits>* __sbout)
|
2003-05-03 02:35:24 +08:00
|
|
|
{
|
2000-10-05 19:27:02 +08:00
|
|
|
streamsize __ret = 0;
|
2001-10-26 13:32:06 +08:00
|
|
|
try
|
|
|
|
{
|
2003-05-03 02:35:24 +08:00
|
|
|
typename _Traits::int_type __c = __sbin->sgetc();
|
|
|
|
while (!_Traits::eq_int_type(__c, _Traits::eof()))
|
|
|
|
{
|
|
|
|
const size_t __n = __sbin->_M_in_end - __sbin->_M_in_cur;
|
|
|
|
if (__n > 1)
|
2001-10-26 13:32:06 +08:00
|
|
|
{
|
2003-05-03 02:35:24 +08:00
|
|
|
const size_t __wrote = __sbout->sputn(__sbin->_M_in_cur,
|
|
|
|
__n);
|
|
|
|
__sbin->_M_move_in_cur(__wrote);
|
|
|
|
__ret += __wrote;
|
|
|
|
if (__wrote < __n)
|
2001-10-26 13:32:06 +08:00
|
|
|
break;
|
2003-05-03 02:35:24 +08:00
|
|
|
__c = __sbin->underflow();
|
2001-10-26 13:32:06 +08:00
|
|
|
}
|
2003-05-03 02:35:24 +08:00
|
|
|
else
|
2002-10-09 14:32:11 +08:00
|
|
|
{
|
2003-05-03 02:35:24 +08:00
|
|
|
__c = __sbout->sputc(_Traits::to_char_type(__c));
|
|
|
|
if (_Traits::eq_int_type(__c, _Traits::eof()))
|
2002-10-09 14:32:11 +08:00
|
|
|
break;
|
2003-05-03 02:35:24 +08:00
|
|
|
++__ret;
|
|
|
|
__c = __sbin->snextc();
|
2002-10-09 14:32:11 +08:00
|
|
|
}
|
2003-05-03 02:35:24 +08:00
|
|
|
}
|
2001-10-26 13:32:06 +08:00
|
|
|
}
|
|
|
|
catch(exception& __fail)
|
|
|
|
{
|
|
|
|
__ios.setstate(ios_base::failbit);
|
|
|
|
if ((__ios.exceptions() & ios_base::failbit) != 0)
|
|
|
|
__throw_exception_again;
|
|
|
|
}
|
2000-10-05 19:27:02 +08:00
|
|
|
return __ret;
|
|
|
|
}
|
Tune for size.
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
Tune for size.
* src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
explicit instantiation.
(string::_Rep::_S_max_size): Same.
* include/bits/basic_string.tcc: Add extern explicit
instantiations for string, wstring.
* include/bits/basic_ios.tcc: Add extern explicit instantiations
for ios, wios.
* include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
* include/bits/istream.tcc: Same, for istream, wistream.
* include/bits/ostream.tcc: Same for ostream, wostream, iostream,
wiostream.
* include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
istringstream, wistringstream, ostringstream, wostringstream,
stringstream, wstringstream.
* include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
wifstream, ofstream, wofstream, fstream, wfstream.
* src/misc-inst.cc: Correct comments.
Add iomanip instantiations for wide streams.
* include/std/std_iomanip.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/std/std_streambuf.h: Correct
_GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
* include/std/std_sstream.h: Same.
* include/std/std_ostream.h: Same.
* include/std/std_istream.h: Same.
* include/std/std_fstream.h: Same.
* include/std/std_streambuf.h: Add definitions for private copy
ctor and assignment operator.
* include/std/std_istream.h: Remove declared but undefined copy
ctor and assignment operator. This is taken care of in ios_base,
so adding it in the derived class as well is superfluous.
* include/std/std_ostream.h: Same.
* include/bits/basic_ios.h (basic_ios::clear): Don't inline.
* include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
From-SVN: r49798
2002-02-16 08:19:13 +08:00
|
|
|
|
|
|
|
// Inhibit implicit instantiations for required instantiations,
|
|
|
|
// which are defined via explicit instantiations elsewhere.
|
|
|
|
// NB: This syntax is a GNU extension.
|
2003-02-14 05:39:03 +08:00
|
|
|
#if _GLIBCPP_EXTERN_TEMPLATE
|
Tune for size.
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
Tune for size.
* src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
explicit instantiation.
(string::_Rep::_S_max_size): Same.
* include/bits/basic_string.tcc: Add extern explicit
instantiations for string, wstring.
* include/bits/basic_ios.tcc: Add extern explicit instantiations
for ios, wios.
* include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
* include/bits/istream.tcc: Same, for istream, wistream.
* include/bits/ostream.tcc: Same for ostream, wostream, iostream,
wiostream.
* include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
istringstream, wistringstream, ostringstream, wostringstream,
stringstream, wstringstream.
* include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
wifstream, ofstream, wofstream, fstream, wfstream.
* src/misc-inst.cc: Correct comments.
Add iomanip instantiations for wide streams.
* include/std/std_iomanip.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/std/std_streambuf.h: Correct
_GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
* include/std/std_sstream.h: Same.
* include/std/std_ostream.h: Same.
* include/std/std_istream.h: Same.
* include/std/std_fstream.h: Same.
* include/std/std_streambuf.h: Add definitions for private copy
ctor and assignment operator.
* include/std/std_istream.h: Remove declared but undefined copy
ctor and assignment operator. This is taken care of in ios_base,
so adding it in the derived class as well is superfluous.
* include/std/std_ostream.h: Same.
* include/bits/basic_ios.h (basic_ios::clear): Don't inline.
* include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
From-SVN: r49798
2002-02-16 08:19:13 +08:00
|
|
|
extern template class basic_streambuf<char>;
|
|
|
|
extern template
|
|
|
|
streamsize
|
|
|
|
__copy_streambufs(basic_ios<char>&, basic_streambuf<char>*,
|
|
|
|
basic_streambuf<char>*);
|
|
|
|
|
2002-11-02 01:30:36 +08:00
|
|
|
#ifdef _GLIBCPP_USE_WCHAR_T
|
Tune for size.
2002-02-15 Benjamin Kosnik <bkoz@redhat.com>
Tune for size.
* src/string-inst.cc (string::_Rep::_S_terminal): Remove redundant
explicit instantiation.
(string::_Rep::_S_max_size): Same.
* include/bits/basic_string.tcc: Add extern explicit
instantiations for string, wstring.
* include/bits/basic_ios.tcc: Add extern explicit instantiations
for ios, wios.
* include/bits/streambuf.tcc: Same, for streambuf, wstreambuf.
* include/bits/istream.tcc: Same, for istream, wistream.
* include/bits/ostream.tcc: Same for ostream, wostream, iostream,
wiostream.
* include/bits/sstream.tcc: Same, for stringbuf, wstringbuf,
istringstream, wistringstream, ostringstream, wostringstream,
stringstream, wstringstream.
* include/bits/fstream.tcc: Same, for filebuf, wfilebuf, ifstream,
wifstream, ofstream, wofstream, fstream, wfstream.
* src/misc-inst.cc: Correct comments.
Add iomanip instantiations for wide streams.
* include/std/std_iomanip.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/std/std_streambuf.h: Correct
_GLIBCPP_FULLY_COMPLIANT_HEADERS guard.
* include/std/std_sstream.h: Same.
* include/std/std_ostream.h: Same.
* include/std/std_istream.h: Same.
* include/std/std_fstream.h: Same.
* include/std/std_streambuf.h: Add definitions for private copy
ctor and assignment operator.
* include/std/std_istream.h: Remove declared but undefined copy
ctor and assignment operator. This is taken care of in ios_base,
so adding it in the derived class as well is superfluous.
* include/std/std_ostream.h: Same.
* include/bits/basic_ios.h (basic_ios::clear): Don't inline.
* include/bits/basic_ios.tcc (basic_ios::clear): Move definition here.
From-SVN: r49798
2002-02-16 08:19:13 +08:00
|
|
|
extern template class basic_streambuf<wchar_t>;
|
|
|
|
extern template
|
|
|
|
streamsize
|
|
|
|
__copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*,
|
|
|
|
basic_streambuf<wchar_t>*);
|
2002-11-02 01:30:36 +08:00
|
|
|
#endif
|
2003-02-14 05:39:03 +08:00
|
|
|
#endif
|
2000-10-05 19:27:02 +08:00
|
|
|
} // namespace std
|
|
|
|
|
2002-02-01 11:20:39 +08:00
|
|
|
#endif
|