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
basic_ios.h sbuf_iter.h: Change to.. 2001-06-26 21:22:57 +00:00
basic_ios.tcc
basic_string.h
basic_string.tcc
boost_concept_check.h
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
concept_check.h
cpp_type_traits.h
fpos.h
fstream.tcc
functexcept.h
generic_shadow.h
gslice_array.h
gslice.h
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
istream.tcc
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.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
ostream.tcc
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_array.h
slice.h
sstream.tcc
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
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
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
std_ios.h
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
std_istream.h
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
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
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
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_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_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_iterator.h configopts.html: Fix thinko. 2001-07-09 21:47:36 +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_iterator.h sbuf_iter.h: Change to.. 2001-06-26 21:22:57 +00:00
streambuf.tcc streambuf.tcc (__copy_streambufs): Don't set eofbit. 2001-06-27 01:07:29 +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
valarray_meta.h valarray_meta.h (_Expr::operator+): Use qualified id for _Expr template template argument. 2001-07-09 12:21:56 +00:00