iterator: Add #include <bits/std_iterator.h>, tweak.
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>. From-SVN: r48430
This commit is contained in:
parent
36955a954f
commit
6d66e50d52
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -63,6 +63,7 @@
|
||||
|
||||
#pragma GCC system_header
|
||||
#include <bits/concept_check.h>
|
||||
#include <bits/std_iterator.h>
|
||||
|
||||
namespace __gnu_cxx
|
||||
{
|
||||
@ -74,7 +75,7 @@ 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>)
|
||||
@ -84,7 +85,7 @@ namespace __gnu_cxx
|
||||
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>)
|
||||
@ -97,7 +98,7 @@ namespace __gnu_cxx
|
||||
_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
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <ext/algorithm>
|
||||
#include <ext/hash_map>
|
||||
#include <ext/hash_set>
|
||||
#include <ext/iterator>
|
||||
#include <ext/rope>
|
||||
#include <ext/slist>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user