+2001-12-31 Paolo Carlini <pcarlini@unitus.it>
+
+ * include/ext/iterator: Add #include <bits/std_iterator.h>, tweak.
+ * testsuite/ext/headers.cc: Add <ext/iterator>.
+
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/backward/algo.h: Add two more using declarations.
#pragma GCC system_header
#include <bits/concept_check.h>
+#include <bits/std_iterator.h>
namespace __gnu_cxx
{
template<typename _InputIterator, typename _Distance>
inline void
__distance(_InputIterator __first, _InputIterator __last,
- _Distance& __n, input_iterator_tag)
+ _Distance& __n, std::input_iterator_tag)
{
// concept requirements
__glibcpp_function_requires(_InputIteratorConcept<_InputIterator>)
template<typename _RandomAccessIterator, typename _Distance>
inline void
__distance(_RandomAccessIterator __first, _RandomAccessIterator __last,
- _Distance& __n, random_access_iterator_tag)
+ _Distance& __n, std::random_access_iterator_tag)
{
// concept requirements
__glibcpp_function_requires(_RandomAccessIteratorConcept<_RandomAccessIterator>)
_Distance& __n)
{
// concept requirements -- taken care of in __distance
- __distance(__first, __last, __n, __iterator_category(__first));
+ __distance(__first, __last, __n, std::__iterator_category(__first));
}
} // namespace __gnu_cxx