+2017-02-23 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/experimental/iterator: Include <iterator>.
+ * testsuite/experimental/iterator/requirements.cc: Check for contents
+ of <iterator>.
+
2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com>
C++17 GB50 resolution
# include <bits/c++14_warning.h>
#else
-#include <experimental/type_traits>
+#include <iterator>
#include <iosfwd>
-#include <bits/move.h>
-#include <bits/stl_iterator_base_types.h>
+#include <experimental/type_traits>
namespace std _GLIBCXX_VISIBILITY(default)
{
// This is a compile-only test with minimal includes
#include <experimental/iterator>
-#include <iosfwd>
+#include <iosfwd> // No guarantee that <experimental/iterator> includes this!
using namespace std::experimental;
tester<wchar_t, wchar_t> ww;
tester<int, wchar_t> iw;
#endif
+
+std::ostream& os();
+
+// Ensure that contents of <iterator> are defined by <experimental/iterator>:
+std::reverse_iterator<int*> ii;
+std::move_iterator<int*> mi;
+std::istream_iterator<int> isi;
+std::ostream_iterator<int> osi(os());
+std::istreambuf_iterator<char> isbi;
+std::ostreambuf_iterator<char> osbi(os());