gcc/libstdc++-v3/include/bits
Benjamin Kosnik f13a69eccf char_traits.h: Remove generic definitions.
2002-07-30  Benjamin Kosnik  <bkoz@redhat.com>
            Gabriel Dos Reis  <gdr@nerim.net>

	* include/bits/char_traits.h: Remove generic definitions.
	* include/bits/streambuf_iterator.h (istreambuf_iterator): Use
	eof, not -2.
	* include/bits/istream.tcc (istream::readsome): Don't check
	against eof, instead use constants.
	(istream::sync): Same.
	(istream::sentry::sentry): Use eq_int_type.
	(istream::get): Same.
	* include/bits/ostream.tcc: Change __pad to
	__pad<_CharT, _Traits>::_S_pad.
	* include/bits/locale_facets.h: Add __pad_traits generic and
	ostreambuf_iterator specialization.
	* include/bits/locale_facets.tcc: Change __pad into struct __pad
	with a _CharT and _Traits template parameter and _S_pad static
	member function.
	* src/locale-inst.cc: Update __pad instantiations.

	* include/std/std_fstream.h: Declare _M_underflow_common
	specializations.
	* src/fstream.cc: New. Add _M_underflow_common specializations.
	* include/bits/fstream.tcc (filebuf::close): Use traits_type.
	(filebuf::_M_underflow_common(bool)): Remove generic version, as
	sys_ungetc and custom int_types don't get along.
	* include/std/std_streambuf.h: Add _M_pos.
	* src/Makefile.am (sources): Add fstream.cc.
	* src/Makefile.in: Regenerate.

	* testsuite/21_strings/capacity.cc: Add char_traits specializations.
	* testsuite/22_locale/codecvt_members_unicode_char.cc: Same.
	* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc: Same.
	* testsuite/22_locale/ctor_copy_dtor.cc: Same.
	* testsuite/27_io/filebuf_virtuals.cc (test07): Move to...
	* testsuite/27_io/filebuf.cc: ...here.
	* testsuite/testsuite_hooks.h: Add gnu_char, gnu_int, char_traits
	specialization for both.
	* testsuite/27_io/streambuf.cc: Add instantiation test,
	testsuite_hooks include.
	* testsuite/27_io/istream.cc: Same.
	* testsuite/27_io/ostream.cc: Same.
	* testsuite/27_io/fstream.cc: Same.
	* testsuite/27_io/stringstream.cc: Same.
	* testsuite/27_io/filebuf.cc: Same.
	* testsuite/27_io/stringbuf.cc: Same.

Co-Authored-By: Gabriel Dos Reis <gdr@nerim.net>

From-SVN: r55893
2002-07-31 02:47:36 +00:00
..
basic_ios.h ios.cc: (ios_base::Init::_S_ios_destroy): Remove flush calls. 2002-04-03 02:32:52 +00:00
basic_ios.tcc std_streambuf.h (basic_streambuf::_M_buf): Change to size_t, from int_type. 2002-07-04 09:20:01 +00:00
basic_string.h basic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error check. 2002-04-26 18:21:32 +00:00
basic_string.tcc 2002-06-04 Paolo Carlini <pcarlini@unitus.it> 2002-06-04 18:20:38 +00:00
boost_concept_check.h stl_map.h, [...]: Reformat and complete doxygenation. 2002-06-22 03:03:56 +00:00
c++config Daily bump. 2002-07-30 07:17:09 +00:00
char_traits.h char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
codecvt.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
concept_check.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
cpp_type_traits.h signbitl.c: Copyright years as list, not range. 2002-01-16 19:57:39 +00:00
deque.tcc abi.txt: New file. 2002-07-20 06:26:27 +00:00
fpos.h char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
fstream.tcc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
functexcept.h
generic_shadow.h signbitl.c: Copyright years as list, not range. 2002-01-16 19:57:39 +00:00
gslice_array.h slice_array.h (slice_array<T>::operator=(const T&)): Constify. 2002-07-19 04:45:20 +00:00
gslice.h signbitl.c: Copyright years as list, not range. 2002-01-16 19:57:39 +00:00
indirect_array.h slice_array.h (slice_array<T>::operator=(const T&)): Constify. 2002-07-19 04:45:20 +00:00
ios_base.h re PR libstdc++/7219 (_GLIBCPP_DEPRECATED on (ios_base::streamoff and ios_base::streampos types)) 2002-07-24 23:17:13 +00:00
istream.tcc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
list.tcc Makefile.am: Add new files. 2002-06-12 22:07:53 +00:00
locale_facets.h char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
locale_facets.tcc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
localefwd.h localefwd.h (locale:🆔:_M_id): Do this correctly, as type safety is important, especially on solaris. 2002-04-18 23:47:50 +00:00
mask_array.h slice_array.h (slice_array<T>::operator=(const T&)): Constify. 2002-07-19 04:45:20 +00:00
ostream.tcc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
pthread_allocimpl.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
slice_array.h e <brendan@zen.org> 2002-07-19 04:51:42 +00:00
sstream.tcc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
stl_algo.h doxygroups.cc: New group on binary searching. 2002-04-18 02:55:50 +00:00
stl_algobase.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl_alloc.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stl_bvector.h stl_bvector.h (swap(_Bit_reference,_Bit_reference)): Move/rename... 2002-06-03 05:03:50 +00:00
stl_construct.h Intro.3: Date tweak. 2002-03-27 21:41:36 +00:00
stl_deque.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stl_function.h stl_function.h: Remove two lines of comments; adjust copyright years. 2002-01-06 09:14:15 +00:00
stl_heap.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_iterator_base_funcs.h TODO: Update. 2002-02-08 07:34:54 +00:00
stl_iterator_base_types.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stl_iterator.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stl_list.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stl_map.h stl_deque.h: Fix misspelling of Create' as Creats'. 2002-07-11 04:43:15 +00:00
stl_multimap.h stl_deque.h: Fix misspelling of Create' as Creats'. 2002-07-11 04:43:15 +00:00
stl_multiset.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_numeric.h stl_numeric.h (power + helpers, iota): Move to... 2002-01-03 19:02:18 +00:00
stl_pair.h stl_pair.h: Tweak comment markup. 2002-05-21 21:09:11 +00:00
stl_pthread_alloc.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_queue.h stl_map.h, [...]: Reformat and complete doxygenation. 2002-06-22 03:03:56 +00:00
stl_raw_storage_iter.h Intro.3: New 'Allocators' module. 2001-12-19 21:57:43 +00:00
stl_relops.h Intro.3: Date tweak. 2002-03-27 21:41:36 +00:00
stl_set.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_stack.h stl_map.h, [...]: Reformat and complete doxygenation. 2002-06-22 03:03:56 +00:00
stl_tempbuf.h Intro.3: Date tweak. 2002-03-27 21:41:36 +00:00
stl_threads.h [multiple changes] 2001-12-04 20:13:41 +00:00
stl_tree.h stl_tree.h (_S_rb_tree_red): Make enum. 2002-03-07 06:53:23 +00:00
stl_uninitialized.h re PR libstdc++/6513 (sigfaults on trivial code) 2002-05-01 02:17:35 +00:00
stl_vector.h abi.txt: New file. 2002-07-20 06:26:27 +00:00
stream_iterator.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
streambuf_iterator.h char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
streambuf.tcc std_streambuf.h (basic_streambuf::_M_buf): Change to size_t, from int_type. 2002-07-04 09:20:01 +00:00
stringfwd.h std_iosfwd.h: Don't guard typedefs with _GLIBCPP_USE_WCHAR_T 2002-02-16 02:41:10 +00:00
type_traits.h [multiple changes] 2002-04-16 02:29:22 +00:00
valarray_array.h signbitl.c: Copyright years as list, not range. 2002-01-16 19:57:39 +00:00
valarray_array.tcc signbitl.c: Copyright years as list, not range. 2002-01-16 19:57:39 +00:00
valarray_meta.h valarray_meta.h (_UnFunBase): Take a second template parameter. 2002-07-10 12:06:37 +00:00
vector.tcc Makefile.am: Add new files. 2002-06-12 22:07:53 +00:00