gcc/libstdc++-v3/include/bits
Stephen M. Webb 02d92e3b70 All occurrences of the __value_type() and __distance_type() functions...
2001-07-17  Stephen M. Webb   <stephen@bregmasoft.com>r

	All occurrences of the __value_type() and __distance_type()
	functions, which were required to support the HP STL, have been
	removed along with all the auxiliary forwarding functions that
	were required to support their use.

	The __iterator_category() function was pretty much left alone
	because there was no benefit to removing it and its use made code
	just a little more readable.

	Incidences of distance() with nonstandard argument list were
	replaced by calls to the standard function (only in the files
	affected by the removal of the other HP functions).

	The signature of the rotate() algorithm was changed to match the
	standard.

	Headers were reformatted under C++STYLE guidelines (indentation,
	linebreaks, typename keyword).

	* include/bits/stl_algo.h: replaced __value_type() and
	__distance_type() with iterator_traits, eliminated auxiliary
	support functions required to support said function usage.
	Changed nonstandard distance() call to standard call.

	* include/bits/stl_algobase.h: Same.
	* include/bits/stl_heap.h: Same.
	* include/bits/stl_numeric.h: Same.
	* include/bits/stl_uninitialized.h: Same.
	* include/bits/stl_iterator_base_types.h (__value_type()):
	Removed.
	(__distance_type()): Removed.
	(value_type()): Gone.
	(distance_type()): Done in.
	(iterator_category()): Hasta la vista, baby.

	* include/bits/stl_iterator_base_funcs.h (iterator_category()):
	Replaced with __iterator_category().
	* include/backward/iterator.h: moved definition of value_type(),
	distance_type(), and iterator_category() out of std:: and into
	here.
	* testsuite/23_containers/vector_ctor.cc (test03): New testcases.
	* testsuite/23_containers/vector_modifiers.cc (test03): New testcases.
	* testsuite/25_algorithms/rotate.cc: New testcase.
	* testsuite/25_algorithms/copy.cc: New testcase.
	* testsuite/25_algorithms/sort.cc: Same.
	* testsuite/25_algorithms/heap.cc: Same.
	* testsuite/25_algorithms/partition.cc: Same.
	* testsuite/25_algorithms/binary_search.cc: Same.
	* testsuite/26_numerics/sum_diff.cc: Ditto.

From-SVN: r44117
2001-07-18 17:09:02 +00:00
..
basic_file.h porting.texi: Add documentation about libstdc++-v3-specific macros that are currently... 2001-06-12 23:09:09 +00:00
basic_ios.h sbuf_iter.h: Change to.. 2001-06-26 21:22:57 +00:00
basic_ios.tcc basic_ios.tcc: Formatting tweaks. 2001-06-06 01:31:58 +00:00
basic_string.h basic_string.h (string::compare): Adjust signatures as per DR 5. 2001-06-12 02:30:37 +00:00
basic_string.tcc basic_string.h (string::compare): Adjust signatures as per DR 5. 2001-06-12 02:30:37 +00:00
boost_concept_check.h boost_concept_check.h (_Mutable_ContainerConcept): Properly uglify member. 2001-04-14 09:46:13 +00:00
c++config Daily bump. 2001-07-18 07:16:08 +00:00
char_traits.h run_doxygen: Don't keep output from previous run. 2001-07-11 19:35:49 +00:00
codecvt.h std_cmath.h (std): Explicitly inject c99 names. 2001-04-26 02:23:52 +00:00
concept_check.h map_operators.cc: Add dg-excess-errors. 2001-04-18 01:06:05 +00:00
cpp_type_traits.h Add #pragma system_header to header files. 2001-02-19 18:52:25 +00:00
fpos.h fpos.h (fpos::operator-): Don't return reference, return original, non-modified version. 2001-06-13 01:14:42 +00:00
fstream.tcc porting.texi: Add documentation about libstdc++-v3-specific macros that are currently... 2001-06-12 23:09:09 +00:00
functexcept.h algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
generic_shadow.h include: New directory. 2000-10-05 11:27:02 +00:00
gslice.h Add #pragma system_header to header files. 2001-02-19 18:52:25 +00:00
gslice_array.h Add #pragma system_header to header files. 2001-02-19 18:52:25 +00:00
indirect_array.h indirect_array.h (indirect_array<>::operator=): Make copy and assignment operator public. 2001-06-21 12:01:09 +00:00
ios_base.h basic_ios.tcc: Formatting tweaks. 2001-06-06 01:31:58 +00:00
istream.tcc std_sstream.h: Add allocator_type, as per DR 251. 2001-06-12 22:14:08 +00:00
limits_generic.h run_doxygen: Don't keep output from previous run. 2001-07-11 19:35:49 +00:00
locale_facets.h locale_facets.h (ctype<_CharT>): Add definitions for generic ctype virtuals. 2001-06-04 19:25:41 +00:00
locale_facets.tcc localefwd.h: Format. 2001-07-04 02:39:02 +00:00
localefwd.h localefwd.h: Format. 2001-07-04 02:39:02 +00:00
mask_array.h algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
ostream.tcc ostream.tcc (ostream::seekp): Add error checking as per DR 129. 2001-06-11 19:20:20 +00:00
pthread_allocimpl.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
slice.h algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
slice_array.h slice_array_assignment.cc (main): New test. 2001-06-13 22:16:24 +00:00
sstream.tcc algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
std_algorithm.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_bitset.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_complex.h acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove. 2001-05-31 12:14:56 +00:00
std_deque.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_fstream.h threads-no.h: Remove file. 2001-06-08 03:53:35 +00:00
std_functional.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_iomanip.h algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
std_ios.h algo.h: Use std not __STD. 2001-03-04 21:34:02 +00:00
std_iosfwd.h std_sstream.h (basic_stringbuf::basic_stringbuf(string): Initialize _M_string with pointer-and-size constructor, not just pointer. 2001-07-13 20:50:03 +00:00
std_iostream.h Add #pragma system_header to header files. 2001-02-19 18:52:25 +00:00
std_istream.h istream.tcc: Include std_ostream.h. 2001-05-31 20:33:06 +00:00
std_iterator.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_list.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_locale.h Add #pragma system_header to header files. 2001-02-19 18:52:25 +00:00
std_map.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_memory.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_numeric.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_ostream.h acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove. 2001-05-31 12:14:56 +00:00
std_queue.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_set.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_sstream.h std_sstream.h (basic_stringbuf::basic_stringbuf(string): Initialize _M_string with pointer-and-size constructor, not just pointer. 2001-07-13 20:50:03 +00:00
std_stack.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_stdexcept.h run_doxygen: Don't keep output from previous run. 2001-07-11 19:35:49 +00:00
std_streambuf.h acconfig.h (_GLIBCPP_BUGGY_FLOAT_COMPLEX): Remove. 2001-05-31 12:14:56 +00:00
std_string.h sbuf_iter.h: Change to.. 2001-06-26 21:22:57 +00:00
std_utility.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
std_valarray.h std_valarray.h (valarray<>::operator[] const): Return a const reference. 2001-05-18 05:47:46 +00:00
std_vector.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_algo.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_algobase.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_alloc.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_bvector.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_construct.h stl_construct.h (construct): Remove. 2001-07-02 19:47:09 +00:00
stl_deque.h stl_construct.h (construct): Remove. 2001-07-02 19:47:09 +00:00
stl_function.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_heap.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_iterator.h configopts.html: Fix thinko. 2001-07-09 21:47:36 +00:00
stl_iterator_base_funcs.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_iterator_base_types.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_list.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_map.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_multimap.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_multiset.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_numeric.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_pair.h run_doxygen: Don't keep output from previous run. 2001-07-11 19:35:49 +00:00
stl_pthread_alloc.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_queue.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_raw_storage_iter.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_relops.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_set.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_stack.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_tempbuf.h stl_construct.h (construct): Remove. 2001-07-02 19:47:09 +00:00
stl_threads.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
stl_tree.h stl_construct.h (construct): Remove. 2001-07-02 19:47:09 +00:00
stl_uninitialized.h All occurrences of the __value_type() and __distance_type() functions... 2001-07-18 17:09:02 +00:00
stl_vector.h stl_vector.h (vector::_M_initialize_aux): Fix typo. 2001-07-06 12:28:48 +00:00
stream_iterator.h stream_iterator.h (istream_iterator): Add copy ctor. 2001-06-26 23:12:45 +00:00
streambuf.tcc streambuf.tcc (__copy_streambufs): Don't set eofbit. 2001-06-27 01:07:29 +00:00
streambuf_iterator.h sbuf_iter.h: Change to.. 2001-06-26 21:22:57 +00:00
stringfwd.h std_sstream.h (basic_stringbuf::basic_stringbuf(string): Initialize _M_string with pointer-and-size constructor, not just pointer. 2001-07-13 20:50:03 +00:00
type_traits.h algo.h: Add "GPL plus runtime exception" comment block, this time for real. 2001-06-27 17:09:53 +00:00
valarray_array.h indirect_array.h (indirect_array<>::operator=): Make copy and assignment operator public. 2001-06-21 12:01:09 +00:00
valarray_array.tcc include: New directory. 2000-10-05 11:27:02 +00:00
valarray_meta.h valarray_meta.h (_Expr::operator+): Use qualified id for _Expr template template argument. 2001-07-09 12:21:56 +00:00